提交 857411d1 编写于 作者: P Pine Wu

Make naming consistent

上级 09eebc5b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
import { TPromise } from 'vs/base/common/winjs.base'; import { TPromise } from 'vs/base/common/winjs.base';
import { IThreadService } from 'vs/workbench/services/thread/common/threadService'; import { IThreadService } from 'vs/workbench/services/thread/common/threadService';
import { ExtHostContext, MainThreadTreeExplorersShape, ExtHostTreeExplorersShape } from './extHost.protocol'; import { ExtHostContext, MainThreadTreeExplorersShape, ExtHostTreeExplorersShape } from './extHost.protocol';
import { ITreeExplorerService } from 'vs/workbench/parts/explorers/browser/treeExplorerService'; import { ITreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerViewletService';
import { InternalTreeExplorerNode } from 'vs/workbench/parts/explorers/common/treeExplorerViewModel'; import { InternalTreeExplorerNode } from 'vs/workbench/parts/explorers/common/treeExplorerViewModel';
export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape { export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
...@@ -17,7 +17,7 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape { ...@@ -17,7 +17,7 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
constructor( constructor(
@IThreadService threadService: IThreadService, @IThreadService threadService: IThreadService,
@ITreeExplorerService private treeExplorerService: ITreeExplorerService @ITreeExplorerViewletService private treeExplorerService: ITreeExplorerViewletService
) { ) {
super(); super();
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
'use strict'; 'use strict';
import { ITreeExplorerService, TreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerService'; import { ITreeExplorerViewletService, TreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerViewletService';
import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
registerSingleton(ITreeExplorerService, TreeExplorerViewletService); registerSingleton(ITreeExplorerViewletService, TreeExplorerViewletService);
...@@ -8,9 +8,9 @@ import { TPromise } from 'vs/base/common/winjs.base'; ...@@ -8,9 +8,9 @@ import { TPromise } from 'vs/base/common/winjs.base';
import { IInstantiationService, createDecorator } from 'vs/platform/instantiation/common/instantiation'; import { IInstantiationService, createDecorator } from 'vs/platform/instantiation/common/instantiation';
import { InternalTreeExplorerNode, InternalTreeExplorerNodeProvider } from 'vs/workbench/parts/explorers/common/treeExplorerViewModel'; import { InternalTreeExplorerNode, InternalTreeExplorerNodeProvider } from 'vs/workbench/parts/explorers/common/treeExplorerViewModel';
export const ITreeExplorerService = createDecorator<ITreeExplorerService>('customViewletService'); export const ITreeExplorerViewletService = createDecorator<ITreeExplorerViewletService>('customViewletService');
export interface ITreeExplorerService { export interface ITreeExplorerViewletService {
_serviceBrand: any; _serviceBrand: any;
registerTreeContentProvider(providerId: string, provider: InternalTreeExplorerNodeProvider): void; registerTreeContentProvider(providerId: string, provider: InternalTreeExplorerNodeProvider): void;
...@@ -19,7 +19,7 @@ export interface ITreeExplorerService { ...@@ -19,7 +19,7 @@ export interface ITreeExplorerService {
resolveCommand(providerId: string, node: InternalTreeExplorerNode): TPromise<void>; resolveCommand(providerId: string, node: InternalTreeExplorerNode): TPromise<void>;
} }
export class TreeExplorerViewletService implements ITreeExplorerService { export class TreeExplorerViewletService implements ITreeExplorerViewletService {
public _serviceBrand: any; public _serviceBrand: any;
private _treeContentProviders: { [providerId: string]: InternalTreeExplorerNodeProvider }; private _treeContentProviders: { [providerId: string]: InternalTreeExplorerNodeProvider };
......
...@@ -18,7 +18,7 @@ import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace ...@@ -18,7 +18,7 @@ import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService'; import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
import { IEditorGroupService } from 'vs/workbench/services/group/common/groupService'; import { IEditorGroupService } from 'vs/workbench/services/group/common/groupService';
import { ITreeExplorerService } from 'vs/workbench/parts/explorers/browser/treeExplorerService'; import { ITreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerViewletService';
import { ITree } from 'vs/base/parts/tree/browser/tree'; import { ITree } from 'vs/base/parts/tree/browser/tree';
import { Tree } from 'vs/base/parts/tree/browser/treeImpl'; import { Tree } from 'vs/base/parts/tree/browser/treeImpl';
import { TreeExplorerViewletState, TreeDataSource, TreeRenderer, TreeController } from 'vs/workbench/parts/explorers/browser/views/treeExplorerViewer'; import { TreeExplorerViewletState, TreeDataSource, TreeRenderer, TreeController } from 'vs/workbench/parts/explorers/browser/views/treeExplorerViewer';
...@@ -42,7 +42,7 @@ export class TreeExplorerView extends CollapsibleViewletView { ...@@ -42,7 +42,7 @@ export class TreeExplorerView extends CollapsibleViewletView {
@IInstantiationService private instantiationService: IInstantiationService, @IInstantiationService private instantiationService: IInstantiationService,
@IWorkbenchEditorService private editorService: IWorkbenchEditorService, @IWorkbenchEditorService private editorService: IWorkbenchEditorService,
@IEditorGroupService private editorGroupService: IEditorGroupService, @IEditorGroupService private editorGroupService: IEditorGroupService,
@ITreeExplorerService private treeExplorerViewletService: ITreeExplorerService @ITreeExplorerViewletService private treeExplorerViewletService: ITreeExplorerViewletService
) { ) {
super(actionRunner, false, nls.localize('treeExplorerViewletTree', "Tree Explorer Section"), messageService, keybindingService, contextMenuService, headerSize); super(actionRunner, false, nls.localize('treeExplorerViewletTree', "Tree Explorer Section"), messageService, keybindingService, contextMenuService, headerSize);
......
...@@ -16,12 +16,12 @@ import { ContributableActionProvider } from 'vs/workbench/browser/actionBarRegis ...@@ -16,12 +16,12 @@ import { ContributableActionProvider } from 'vs/workbench/browser/actionBarRegis
import { IContextViewService } from 'vs/platform/contextview/browser/contextView'; import { IContextViewService } from 'vs/platform/contextview/browser/contextView';
import { IExtensionService } from 'vs/platform/extensions/common/extensions'; import { IExtensionService } from 'vs/platform/extensions/common/extensions';
import { IModeService } from 'vs/editor/common/services/modeService'; import { IModeService } from 'vs/editor/common/services/modeService';
import { ITreeExplorerService } from 'vs/workbench/parts/explorers/browser/treeExplorerService'; import { ITreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerViewletService';
export class TreeDataSource implements IDataSource { export class TreeDataSource implements IDataSource {
constructor( constructor(
private treeNodeProviderId: string, private treeNodeProviderId: string,
@ITreeExplorerService private treeExplorerViewletService: ITreeExplorerService @ITreeExplorerViewletService private treeExplorerViewletService: ITreeExplorerViewletService
) { ) {
} }
...@@ -82,7 +82,7 @@ export class TreeController extends DefaultController { ...@@ -82,7 +82,7 @@ export class TreeController extends DefaultController {
constructor( constructor(
private treeNodeProviderId: string, private treeNodeProviderId: string,
@ITreeExplorerService private treeExplorerViewletService: ITreeExplorerService @ITreeExplorerViewletService private treeExplorerViewletService: ITreeExplorerViewletService
) { ) {
super({ clickBehavior: ClickBehavior.ON_MOUSE_UP /* do not change to not break DND */ }); super({ clickBehavior: ClickBehavior.ON_MOUSE_UP /* do not change to not break DND */ });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册