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

@@ -168,8 +168,8 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
private readonly _onDidChangeWorkspace = new Emitter<vscode.WorkspaceFoldersChangeEvent>();
readonly onDidChangeWorkspace: Event<vscode.WorkspaceFoldersChangeEvent> = this._onDidChangeWorkspace.event;
private readonly _onDidReceieveWorkspaceTrust = new Emitter<void>();
readonly onDidReceiveWorkspaceTrust: Event<void> = this._onDidReceieveWorkspaceTrust.event;
private readonly _onDidGrantWorkspaceTrust = new Emitter<void>();
readonly onDidGrantWorkspaceTrust: Event<void> = this._onDidGrantWorkspaceTrust.event;
private readonly _logService: ILogService;
private readonly _requestIdProvider: Counter;
@@ -567,10 +567,10 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
return options?.modal ? promise : Promise.resolve(this._trusted);
}
$onDidReceiveWorkspaceTrust(): void {
$onDidGrantWorkspaceTrust(): void {
if (!this._trusted) {
this._trusted = true;
this._onDidReceieveWorkspaceTrust.fire();
this._onDidGrantWorkspaceTrust.fire();
}
}
}