Workspace Trust - add support to request trust for a resource (#290404)

* Initial implementation

* Pull request feedback
This commit is contained in:
Ladislau Szomoru
2026-01-26 16:59:55 +01:00
committed by GitHub
parent a622ffd476
commit b962957183
12 changed files with 155 additions and 18 deletions

View File

@@ -1259,6 +1259,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
get isTrusted() {
return extHostWorkspace.trusted;
},
requestResourceTrust: (options: vscode.ResourceTrustRequestOptions) => {
checkProposedApiEnabled(extension, 'workspaceTrust');
return extHostWorkspace.requestResourceTrust(options);
},
requestWorkspaceTrust: (options?: vscode.WorkspaceTrustRequestOptions) => {
checkProposedApiEnabled(extension, 'workspaceTrust');
return extHostWorkspace.requestWorkspaceTrust(options);