tweak api based on conversations (#120397)

This commit is contained in:
SteVen Batten
2021-04-02 11:02:03 -07:00
committed by GitHub
parent 99ffa6db26
commit 15af2df708
8 changed files with 29 additions and 32 deletions

View File

@@ -185,7 +185,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
private readonly _activeSearchCallbacks: ((match: IRawFileMatch2) => any)[] = [];
private _workspaceTrustState: WorkspaceTrustState = WorkspaceTrustState.Unknown;
private _workspaceTrustState: WorkspaceTrustState = WorkspaceTrustState.Unspecified;
constructor(
@IExtHostRpcService extHostRpc: IExtHostRpcService,
@@ -569,7 +569,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
$onDidChangeWorkspaceTrustState(state: WorkspaceTrustStateChangeEvent): void {
this._workspaceTrustState = state.currentTrustState;
this._onDidChangeWorkspaceTrustState.fire(Object.freeze(state));
this._onDidChangeWorkspaceTrustState.fire(Object.freeze({ newTrustState: state.currentTrustState }));
}
}