mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
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:
@@ -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);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user