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