mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-20 07:09:53 +01:00
Make naming consistent
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { IThreadService } from 'vs/workbench/services/thread/common/threadService';
|
||||
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';
|
||||
|
||||
export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
|
||||
@@ -17,7 +17,7 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
|
||||
|
||||
constructor(
|
||||
@IThreadService threadService: IThreadService,
|
||||
@ITreeExplorerService private treeExplorerService: ITreeExplorerService
|
||||
@ITreeExplorerViewletService private treeExplorerService: ITreeExplorerViewletService
|
||||
) {
|
||||
super();
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'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';
|
||||
|
||||
registerSingleton(ITreeExplorerService, TreeExplorerViewletService);
|
||||
registerSingleton(ITreeExplorerViewletService, TreeExplorerViewletService);
|
||||
|
||||
+3
-3
@@ -8,9 +8,9 @@ import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { IInstantiationService, createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
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;
|
||||
|
||||
registerTreeContentProvider(providerId: string, provider: InternalTreeExplorerNodeProvider): void;
|
||||
@@ -19,7 +19,7 @@ export interface ITreeExplorerService {
|
||||
resolveCommand(providerId: string, node: InternalTreeExplorerNode): TPromise<void>;
|
||||
}
|
||||
|
||||
export class TreeExplorerViewletService implements ITreeExplorerService {
|
||||
export class TreeExplorerViewletService implements ITreeExplorerViewletService {
|
||||
public _serviceBrand: any;
|
||||
|
||||
private _treeContentProviders: { [providerId: string]: InternalTreeExplorerNodeProvider };
|
||||
@@ -18,7 +18,7 @@ import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
||||
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 { Tree } from 'vs/base/parts/tree/browser/treeImpl';
|
||||
import { TreeExplorerViewletState, TreeDataSource, TreeRenderer, TreeController } from 'vs/workbench/parts/explorers/browser/views/treeExplorerViewer';
|
||||
@@ -42,7 +42,7 @@ export class TreeExplorerView extends CollapsibleViewletView {
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
@IWorkbenchEditorService private editorService: IWorkbenchEditorService,
|
||||
@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);
|
||||
|
||||
|
||||
@@ -16,12 +16,12 @@ import { ContributableActionProvider } from 'vs/workbench/browser/actionBarRegis
|
||||
import { IContextViewService } from 'vs/platform/contextview/browser/contextView';
|
||||
import { IExtensionService } from 'vs/platform/extensions/common/extensions';
|
||||
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 {
|
||||
constructor(
|
||||
private treeNodeProviderId: string,
|
||||
@ITreeExplorerService private treeExplorerViewletService: ITreeExplorerService
|
||||
@ITreeExplorerViewletService private treeExplorerViewletService: ITreeExplorerViewletService
|
||||
) {
|
||||
|
||||
}
|
||||
@@ -82,7 +82,7 @@ export class TreeController extends DefaultController {
|
||||
|
||||
constructor(
|
||||
private treeNodeProviderId: string,
|
||||
@ITreeExplorerService private treeExplorerViewletService: ITreeExplorerService
|
||||
@ITreeExplorerViewletService private treeExplorerViewletService: ITreeExplorerViewletService
|
||||
) {
|
||||
super({ clickBehavior: ClickBehavior.ON_MOUSE_UP /* do not change to not break DND */ });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user