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

@@ -61,7 +61,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
}
this._contextService.onDidChangeWorkspaceFolders(this._onDidChangeWorkspace, this, this._toDispose);
this._contextService.onDidChangeWorkbenchState(this._onDidChangeWorkspace, this, this._toDispose);
this._workspaceTrustManagementService.onDidChangeTrust(this._onDidReceiveWorkspaceTrust, this, this._toDispose);
this._workspaceTrustManagementService.onDidChangeTrust(this._onDidGrantWorkspaceTrust, this, this._toDispose);
}
dispose(): void {
@@ -217,7 +217,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
return this._workspaceTrustManagementService.isWorkpaceTrusted();
}
private _onDidReceiveWorkspaceTrust(): void {
this._proxy.$onDidReceiveWorkspaceTrust();
private _onDidGrantWorkspaceTrust(): void {
this._proxy.$onDidGrantWorkspaceTrust();
}
}