提交 6fd1c54b 编写于 作者: P Pine Wu

Move VIEWLET_ID_ROOT to one place

上级 b1415070
......@@ -11,6 +11,7 @@ import { IJSONSchema } from 'vs/base/common/jsonSchema';
import { ExtensionsRegistry } from 'vs/platform/extensions/common/extensionsRegistry';
import { Registry } from 'vs/platform/platform';
import { ViewletRegistry, Extensions as ViewletExtensions, ViewletDescriptor } from 'vs/workbench/browser/viewlet';
import { VIEWLET_ID_ROOT } from 'vs/workbench/parts/explorers/common/treeExplorer';
namespace schema {
......@@ -66,7 +67,7 @@ ExtensionsRegistry.registerExtensionPoint<schema.IExplorer>('explorer', schema.e
descriptors.push(new ViewletDescriptor(
'vs/workbench/parts/explorers/browser/treeExplorerViewlet',
'TreeExplorerViewlet',
'workbench.view.customTreeExplorerViewlet.' + treeExplorerNodeProviderId,
VIEWLET_ID_ROOT + treeExplorerNodeProviderId,
treeLabel,
treeExplorerNodeProviderId,
baseOrder++,
......
......@@ -13,8 +13,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import { TreeExplorerView } from 'vs/workbench/parts/explorers/browser/views/treeExplorerView';
import { TreeExplorerViewletState } from 'vs/workbench/parts/explorers/browser/views/treeExplorerViewer';
import { IActivityService } from 'vs/workbench/services/activity/common/activityService';
export const VIEWLET_ID_ROOT = 'workbench.view.customTreeExplorerViewlet.';
import { VIEWLET_ID_ROOT } from 'vs/workbench/parts/explorers/common/treeExplorer';
export class TreeExplorerViewlet extends Viewlet {
private static _idCounter = 1;
......
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
export const VIEWLET_ID_ROOT = 'workbench.view.customTreeExplorer.';
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册