mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
api resolves immediately trust state in non-modal
This commit is contained in:
@@ -563,7 +563,8 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
|
||||
}
|
||||
|
||||
requestWorkspaceTrust(options?: vscode.WorkspaceTrustRequestOptions): Promise<boolean> {
|
||||
return this._proxy.$requestWorkspaceTrust(options);
|
||||
const promise = this._proxy.$requestWorkspaceTrust(options);
|
||||
return options?.modal ? promise : Promise.resolve(this._trusted);
|
||||
}
|
||||
|
||||
$onDidReceiveWorkspaceTrust(): void {
|
||||
|
||||
Reference in New Issue
Block a user