mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
tweak api based on conversations (#120397)
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user