Skip to content

Commit

Permalink
Remove old workspace trust editor
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru committed Feb 17, 2021
1 parent 797dc14 commit d723065
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 98 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/actions/workspaceActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { KeyChord, KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
import { IWorkspacesService, hasWorkspaceFileExtension } from 'vs/platform/workspaces/common/workspaces';
import { WORKSPACE_TRUST_ENABLED, WORKSPACE_TRUST_URI } from 'vs/workbench/services/workspaces/common/workspaceTrust';
import { WORKSPACE_TRUST_ENABLED } from 'vs/workbench/services/workspaces/common/workspaceTrust';

export class OpenFileAction extends Action {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { registerIcon } from 'vs/platform/theme/common/iconRegistry';
import { Codicon } from 'vs/base/common/codicons';
import { ThemeColor } from 'vs/workbench/api/common/extHostTypes';
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
import { WorkspaceTrustFileSystemProvider } from 'vs/workbench/contrib/workspace/common/workspaceTrustFileSystemProvider';
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
import { ICommandService } from 'vs/platform/commands/common/commands';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
Expand Down Expand Up @@ -178,14 +177,6 @@ Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).regi
LifecyclePhase.Starting
);

/*
* Trusted Workspace JSON Editor
*/
Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(
WorkspaceTrustFileSystemProvider,
LifecyclePhase.Ready
);

/**
* Trusted Workspace GUI Editor
*/
Expand Down Expand Up @@ -308,7 +299,7 @@ registerAction2(class extends Action2 {

const input = instantiationService.createInstance(WorkspaceTrustEditorInput);

editorService.openEditor(input, { pinned: true });
editorService.openEditor(input, { pinned: true, revealIfOpened: true });
return;
}
});
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { EditorModel } from 'vs/workbench/common/editor';

export const WORKSPACE_TRUST_ENABLED = 'workspace.trustEnabled';
export const WORKSPACE_TRUST_STORAGE_KEY = 'content.trust.model.key';
export const WORKSPACE_TRUST_URI = URI.parse('workspaceTrust:/Trusted Workspaces');
//export const WORKSPACE_TRUST_URI = URI.parse('workspaceTrust:/Trusted Workspaces');

export const WorkspaceTrustContext = {
PendingRequest: new RawContextKey<boolean>('workspaceTrustPendingRequest', false),
Expand Down

0 comments on commit d723065

Please sign in to comment.