Cleanup modal property from proposed api

This commit is contained in:
Ladislau Szomoru
2021-05-02 14:22:41 +02:00
parent 119055dec7
commit 3edce10f20
3 changed files with 7 additions and 10 deletions

View File

@@ -563,8 +563,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
}
requestWorkspaceTrust(options?: vscode.WorkspaceTrustRequestOptions): Promise<boolean | undefined> {
const promise = this._proxy.$requestWorkspaceTrust(options);
return options?.modal ? promise : Promise.resolve(this._trusted);
return this._proxy.$requestWorkspaceTrust(options);
}
$onDidGrantWorkspaceTrust(): void {