提交 31afc033 编写于 作者: P Pine Wu

Clean up format issues

上级 5b1ba3ce
...@@ -306,4 +306,4 @@ ExtensionsRegistry.registerExtensionPoint<{ [loc: string]: schema.IUserFriendlyM ...@@ -306,4 +306,4 @@ ExtensionsRegistry.registerExtensionPoint<{ [loc: string]: schema.IUserFriendlyM
} }
}); });
} }
}); });
\ No newline at end of file
...@@ -23,19 +23,19 @@ namespace schema { ...@@ -23,19 +23,19 @@ namespace schema {
} }
export const explorerContribtion: IJSONSchema = { export const explorerContribtion: IJSONSchema = {
description: localize('vscode.extension.contributes.explorer', "Contributes explorer viewlet to the sidebar"), description: localize('vscode.extension.contributes.explorer', "Contributes custom tree explorer viewlet to the sidebar"),
type: 'object', type: 'object',
properties: { properties: {
treeContentProviderId: { treeExplorerNodeProviderId: {
description: localize('vscode.extension.contributes.explorer.treeExplorerNodeProviderId', 'Unique id used to identify provider registered through vscode.workspace.registerTreeExplorerNodeProvider'), description: localize('vscode.extension.contributes.explorer.treeExplorerNodeProviderId', 'Unique id used to identify provider registered through vscode.workspace.registerTreeExplorerNodeProvider'),
type: 'string' type: 'string'
}, },
treeLabel: { treeLabel: {
description: localize('vscode.extension.contributes.explorer.treeLabel', 'Human readable string used to render the custom tree Viewlet'), description: localize('vscode.extension.contributes.explorer.treeLabel', 'Human readable string used to render the custom tree viewlet'),
type: 'string' type: 'string'
}, },
icon: { icon: {
description: localize('vscode.extension.contributes.explorer.icon', 'Icon to put on activity bar'), description: localize('vscode.extension.contributes.explorer.icon', 'Path to the viewlet icon on the activity bar'),
type: 'string' type: 'string'
} }
} }
...@@ -74,4 +74,4 @@ ExtensionsRegistry.registerExtensionPoint<schema.IExplorer>('explorer', schema.e ...@@ -74,4 +74,4 @@ ExtensionsRegistry.registerExtensionPoint<schema.IExplorer>('explorer', schema.e
)); ));
} }
Registry.as<ViewletRegistry>(ViewletExtensions.Viewlets).registerExternalViewlets(descriptors); Registry.as<ViewletRegistry>(ViewletExtensions.Viewlets).registerExternalViewlets(descriptors);
}); });
\ No newline at end of file
...@@ -75,7 +75,8 @@ export interface ITheme { ...@@ -75,7 +75,8 @@ export interface ITheme {
} }
export interface ITreeExplorer { export interface ITreeExplorer {
treeContentProviderId: string; treeExplorerNodeProviderId: string;
treeLabel: string;
icon: string; icon: string;
} }
......
...@@ -12,7 +12,6 @@ import { IThreadService } from 'vs/workbench/services/thread/common/threadServic ...@@ -12,7 +12,6 @@ import { IThreadService } from 'vs/workbench/services/thread/common/threadServic
import * as errors from 'vs/base/common/errors'; import * as errors from 'vs/base/common/errors';
import product from 'vs/platform/product'; import product from 'vs/platform/product';
import pkg from 'vs/platform/package'; import pkg from 'vs/platform/package';
import { ExtHostFileSystemEventService } from 'vs/workbench/api/node/extHostFileSystemEventService'; import { ExtHostFileSystemEventService } from 'vs/workbench/api/node/extHostFileSystemEventService';
import { ExtHostDocuments } from 'vs/workbench/api/node/extHostDocuments'; import { ExtHostDocuments } from 'vs/workbench/api/node/extHostDocuments';
import { ExtHostDocumentSaveParticipant } from 'vs/workbench/api/node/extHostDocumentSaveParticipant'; import { ExtHostDocumentSaveParticipant } from 'vs/workbench/api/node/extHostDocumentSaveParticipant';
......
...@@ -17,7 +17,7 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape { ...@@ -17,7 +17,7 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape {
private _proxy: MainThreadTreeExplorersShape; private _proxy: MainThreadTreeExplorersShape;
private _treeExplorerNodeProviders: { [providerId: string]: TreeExplorerNodeProvider<any> }; private _treeExplorerNodeProviders: { [providerId: string]: TreeExplorerNodeProvider<any> };
private _externalNodeMaps: { [providerId: string]: { [id: number]: any }}; private _externalNodeMaps: { [providerId: string]: { [id: number]: any } };
constructor( constructor(
threadService: IThreadService, threadService: IThreadService,
...@@ -91,4 +91,4 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape { ...@@ -91,4 +91,4 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape {
return TPromise.as(null); return TPromise.as(null);
} }
} }
\ No newline at end of file
...@@ -264,5 +264,4 @@ export class MainThreadDocuments extends MainThreadDocumentsShape { ...@@ -264,5 +264,4 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
} }
}, onUnexpectedError); }, onUnexpectedError);
} }
} }
...@@ -45,4 +45,4 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape { ...@@ -45,4 +45,4 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
$unregisterTreeContentProvider(treeContentProviderId: string): void { $unregisterTreeContentProvider(treeContentProviderId: string): void {
} }
} }
\ No newline at end of file
...@@ -57,4 +57,4 @@ registry.registerWorkbenchAction( ...@@ -57,4 +57,4 @@ registry.registerWorkbenchAction(
new SyncActionDescriptor(ToggleExternalViewletAction, ToggleExternalViewletAction.ID, ToggleExternalViewletAction.LABEL), new SyncActionDescriptor(ToggleExternalViewletAction, ToggleExternalViewletAction.ID, ToggleExternalViewletAction.LABEL),
"View: Toggle Custom Explorer", "View: Toggle Custom Explorer",
nls.localize('view', "View") nls.localize('view', "View")
); );
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
import { ITreeExplorerService, TreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerService'; import { ITreeExplorerService, TreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerService';
import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
registerSingleton(ITreeExplorerService, TreeExplorerViewletService); registerSingleton(ITreeExplorerService, TreeExplorerViewletService);
\ No newline at end of file
...@@ -67,4 +67,4 @@ export class TreeExplorerViewlet extends Viewlet { ...@@ -67,4 +67,4 @@ export class TreeExplorerViewlet extends Viewlet {
dispose(): void { dispose(): void {
this.view = null; this.view = null;
} }
} }
\ No newline at end of file
...@@ -113,4 +113,4 @@ export class TreeExplorerView extends CollapsibleViewletView { ...@@ -113,4 +113,4 @@ export class TreeExplorerView extends CollapsibleViewletView {
return DOM.getLargestChildWidth(parentNode, childNodes); return DOM.getLargestChildWidth(parentNode, childNodes);
} }
} }
\ No newline at end of file
...@@ -118,4 +118,4 @@ export class TreeExplorerViewletState implements ITreeExplorerViewletState { ...@@ -118,4 +118,4 @@ export class TreeExplorerViewletState implements ITreeExplorerViewletState {
} }
get actionProvider() { return this._actionProvider; } get actionProvider() { return this._actionProvider; }
} }
\ No newline at end of file
...@@ -46,4 +46,4 @@ export interface TreeExplorerNodeContent { ...@@ -46,4 +46,4 @@ export interface TreeExplorerNodeContent {
hasChildren: boolean; hasChildren: boolean;
shouldInitiallyExpand: boolean; shouldInitiallyExpand: boolean;
clickCommand: string; clickCommand: string;
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册