提交 4aa82113 编写于 作者: K kieferrm

clean-up: rename to reflect actual purpose

上级 ab915382
......@@ -80,7 +80,7 @@ import 'vs/workbench/parts/terminal/electron-browser/terminalPanel'; // can be p
import 'vs/workbench/electron-browser/workbench';
import 'vs/workbench/parts/trust/electron-browser/trust.contribution';
import 'vs/workbench/parts/trust/electron-browser/unsupportedWorkspaceSettings.contribution';
import 'vs/workbench/parts/tasks/electron-browser/task.contribution';
......
......@@ -20,7 +20,7 @@ import { IStorageService, StorageScope } from 'vs/platform/storage/common/storag
class TrustContribution implements IWorkbenchContribution {
class UnsupportedWorkspaceSettingsContribution implements IWorkbenchContribution {
private static storageKey = 'workspace.settings.unsupported.warning';
private toDispose: IDisposable[] = [];
......@@ -59,11 +59,11 @@ class TrustContribution implements IWorkbenchContribution {
}
private hasShownWarning(): boolean {
return this.storageService.getBoolean(TrustContribution.storageKey, StorageScope.WORKSPACE, false);
return this.storageService.getBoolean(UnsupportedWorkspaceSettingsContribution.storageKey, StorageScope.WORKSPACE, false);
}
private rememberWarningWasShown(): void {
this.storageService.store(TrustContribution.storageKey, true, StorageScope.WORKSPACE);
this.storageService.store(UnsupportedWorkspaceSettingsContribution.storageKey, true, StorageScope.WORKSPACE);
}
private showWarning(unsupportedKeys: string[]): void {
......@@ -95,4 +95,4 @@ class TrustContribution implements IWorkbenchContribution {
}
const workbenchRegistry = <IWorkbenchContributionsRegistry>Registry.as(WorkbenchExtensions.Workbench);
workbenchRegistry.registerWorkbenchContribution(TrustContribution);
workbenchRegistry.registerWorkbenchContribution(UnsupportedWorkspaceSettingsContribution);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册