提交 9b33a963 编写于 作者: A Alex Dima

Remove unused ext host <-> main thread comm class

上级 3175dae1
......@@ -60,7 +60,6 @@ export class ExtHostContribution implements IWorkbenchContribution {
// Addressable instances
const col = new InstanceCollection();
col.define(MainContext.MainThreadCommands).set(create(MainThreadCommands));
col.define(MainContext.MainThreadConfiguration).set(create(MainThreadConfiguration));
col.define(MainContext.MainThreadDiagnostics).set(create(MainThreadDiagnostics));
col.define(MainContext.MainThreadDocuments).set(create(MainThreadDocuments));
col.define(MainContext.MainThreadEditors).set(create(MainThreadEditors));
......@@ -81,6 +80,7 @@ export class ExtHostContribution implements IWorkbenchContribution {
// Other interested parties
create(MainProcessTextMateSyntax);
create(MainThreadConfiguration);
create(MainProcessTextMateSnippet);
create(JSONValidationExtensionPoint);
create(LanguageConfigurationFileHandler);
......
......@@ -81,9 +81,6 @@ export abstract class MainThreadCommandsShape {
$getCommands(): Thenable<string[]> { throw ni(); }
}
export abstract class MainThreadConfigurationShape {
}
export abstract class MainThreadDiagnosticsShape {
$changeMany(owner: string, entries: [URI, IMarkerData[]][]): TPromise<any> { throw ni(); }
$clear(owner: string): TPromise<any> { throw ni(); }
......@@ -281,7 +278,6 @@ export abstract class ExtHostQuickOpenShape {
export const MainContext = {
MainThreadCommands: createMainId<MainThreadCommandsShape>('MainThreadCommands', MainThreadCommandsShape),
MainThreadConfiguration: createMainId<MainThreadConfigurationShape>('MainThreadConfiguration', MainThreadConfigurationShape),
MainThreadDiagnostics: createMainId<MainThreadDiagnosticsShape>('MainThreadDiagnostics', MainThreadDiagnosticsShape),
MainThreadDocuments: createMainId<MainThreadDocumentsShape>('MainThreadDocuments', MainThreadDocumentsShape),
MainThreadEditors: createMainId<MainThreadEditorsShape>('MainThreadEditors', MainThreadEditorsShape),
......
......@@ -7,9 +7,9 @@
import {IDisposable, dispose} from 'vs/base/common/lifecycle';
import {IThreadService} from 'vs/workbench/services/thread/common/threadService';
import {IConfigurationService} from 'vs/platform/configuration/common/configuration';
import {MainThreadConfigurationShape, ExtHostContext, ExtHostConfigurationShape} from './extHost.protocol';
import {ExtHostContext, ExtHostConfigurationShape} from './extHost.protocol';
export class MainThreadConfiguration extends MainThreadConfigurationShape {
export class MainThreadConfiguration {
private _configurationService: IConfigurationService;
private _toDispose: IDisposable;
......@@ -19,8 +19,6 @@ export class MainThreadConfiguration extends MainThreadConfigurationShape {
@IConfigurationService configurationService: IConfigurationService,
@IThreadService threadService: IThreadService
) {
super();
this._configurationService = configurationService;
this._proxy = threadService.get(ExtHostContext.ExtHostConfiguration);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册