mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
finalize basic workspace trust api
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user