diff --git a/src/vs/workbench/api/node/mainThreadTerminalService.ts b/src/vs/workbench/api/node/mainThreadTerminalService.ts index 4e39271706c..d6aede98b6a 100644 --- a/src/vs/workbench/api/node/mainThreadTerminalService.ts +++ b/src/vs/workbench/api/node/mainThreadTerminalService.ts @@ -5,8 +5,6 @@ 'use strict'; import {IDisposable, dispose} from 'vs/base/common/lifecycle'; -import {IPanelService} from 'vs/workbench/services/panel/common/panelService'; -import {IPartService} from 'vs/workbench/services/part/common/partService'; import {ITerminalService, ITerminalInstance} from 'vs/workbench/parts/terminal/electron-browser/terminal'; import {IThreadService} from 'vs/workbench/services/thread/common/threadService'; import {TPromise} from 'vs/base/common/winjs.base'; @@ -18,9 +16,7 @@ export class MainThreadTerminalService extends MainThreadTerminalServiceShape { private _toDispose: IDisposable[]; constructor( - @IPanelService private panelService: IPanelService, - @IPartService private partService: IPartService, - @IThreadService private threadService: IThreadService, + @IThreadService threadService: IThreadService, @ITerminalService private terminalService: ITerminalService ) { super(); diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts index 471c3a2f582..1de5097c1bf 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts @@ -56,7 +56,7 @@ export class TerminalInstance implements ITerminalInstance { private _terminalFocusContextKey: IContextKey, private _configHelper: TerminalConfigHelper, private _container: HTMLElement, - private _workspace: IWorkspace, + workspace: IWorkspace, name: string, shell: IShell, @IKeybindingService private _keybindingService: IKeybindingService, @@ -72,7 +72,7 @@ export class TerminalInstance implements ITerminalInstance { this._onProcessIdReady = new Emitter(); this._onTitleChanged = new Emitter(); - this._createProcess(_workspace, name, shell); + this._createProcess(workspace, name, shell); if (_container) { this.attachToElement(_container); diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts index 706f5667594..f157dba258a 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts @@ -6,7 +6,6 @@ import Event, { Emitter } from 'vs/base/common/event'; import platform = require('vs/base/common/platform'); import { Builder } from 'vs/base/browser/builder'; -import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { IContextKeyService, IContextKey } from 'vs/platform/contextkey/common/contextkey'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { IPanelService } from 'vs/workbench/services/panel/common/panelService'; @@ -41,7 +40,6 @@ export class TerminalService implements ITerminalService { public get terminalInstances(): ITerminalInstance[] { return this._terminalInstances; } constructor( - @IConfigurationService private _configurationService: IConfigurationService, @IContextKeyService private _contextKeyService: IContextKeyService, @IInstantiationService private _instantiationService: IInstantiationService, @IPanelService private _panelService: IPanelService,