finalize basic workspace trust api

This commit is contained in:
SteVen Batten
2021-04-21 09:56:19 -07:00
parent d97790d162
commit a9f70f7919
7 changed files with 22 additions and 22 deletions

View File

@@ -921,15 +921,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
return extHostTimeline.registerTimelineProvider(scheme, provider, extension.identifier, extHostCommands.converter);
},
get isTrusted() {
checkProposedApiEnabled(extension);
return extHostWorkspace.trusted;
},
requestWorkspaceTrust: (options?: vscode.WorkspaceTrustRequestOptions) => {
checkProposedApiEnabled(extension);
return extHostWorkspace.requestWorkspaceTrust(options);
},
onDidReceiveWorkspaceTrust: (listener, thisArgs?, disposables?) => {
return extHostWorkspace.onDidReceiveWorkspaceTrust(listener, thisArgs, disposables);
onDidGrantWorkspaceTrust: (listener, thisArgs?, disposables?) => {
return extHostWorkspace.onDidGrantWorkspaceTrust(listener, thisArgs, disposables);
}
};