mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Remove unused ext host <-> main thread comm class
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user