Workspace Trust Prop Changes (#121779)

* update wording for dialog

* remove soft request prompts

* tweak wording

* use origin

* clean up language for choice prompt
This commit is contained in:
SteVen Batten
2021-04-23 10:14:09 -07:00
committed by GitHub
parent ee3812f51c
commit 6c747e75da
16 changed files with 371 additions and 122 deletions

View File

@@ -38,16 +38,11 @@ export class TypeScriptVersionManager extends Disposable {
this._currentVersion = localVersion;
}
} else {
setImmediate(() => {
vscode.workspace.requestWorkspaceTrust({ modal: false })
.then(trusted => {
if (trusted && this.versionProvider.localVersion) {
this.updateActiveVersion(this.versionProvider.localVersion);
} else {
this.updateActiveVersion(this.versionProvider.defaultVersion);
}
});
});
this._disposables.push(vscode.workspace.onDidReceiveWorkspaceTrust(() => {
if (this.versionProvider.localVersion) {
this.updateActiveVersion(this.versionProvider.localVersion);
}
}));
}
}