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

Clean up format issues

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