mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Return undefined if dialog is cancelled (#122234)
This commit is contained in:
@@ -562,7 +562,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
|
||||
return this._trusted;
|
||||
}
|
||||
|
||||
requestWorkspaceTrust(options?: vscode.WorkspaceTrustRequestOptions): Promise<boolean> {
|
||||
requestWorkspaceTrust(options?: vscode.WorkspaceTrustRequestOptions): Promise<boolean | undefined> {
|
||||
const promise = this._proxy.$requestWorkspaceTrust(options);
|
||||
return options?.modal ? promise : Promise.resolve(this._trusted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user