src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts/SimpleFileDialog/tildaReplace
class SimpleFileDialog:	private tildaReplace(value: string): URI {
		const home = this.userHome;
		if ((value[0] === '~') && (value.length > 1)) {
			return resources.joinPath(home, value.substring(1));
		} else if (value[value.length - 1] === '~') {
			return home;
		}
		return this.remoteUriFrom(value);
	}