Archived
1
0
This commit is contained in:
Kyle Carberry 2019-03-20 09:58:56 -04:00
parent 3da1dccf73
commit e9e0bf7d84
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB

View File

@ -189,7 +189,19 @@ export class Workbench {
} else { } else {
config.folderUri = workspace as URI; config.folderUri = workspace as URI;
} }
await main(config); try {
await main(config);
} catch (ex) {
if (ex.toString().indexOf("UriError") !== -1 || ex.toString().indexOf("backupPath") !== -1) {
/**
* Resolves the error of the workspace identifier being invalid.
*/
this.workspace = undefined;
location.reload();
return;
}
}
const contextKeys = this.serviceCollection.get(IContextKeyService) as IContextKeyService; const contextKeys = this.serviceCollection.get(IContextKeyService) as IContextKeyService;
const bounded = this.clipboardContextKey.bindTo(contextKeys); const bounded = this.clipboardContextKey.bindTo(contextKeys);
client.clipboard.onPermissionChange((enabled) => { client.clipboard.onPermissionChange((enabled) => {