提交 03ecd716 编写于 作者: K Kai Wood

Remove dependency on TerminalService

上级 78a57615
......@@ -18,7 +18,7 @@ import { IContextKey } from 'vs/platform/contextkey/common/contextkey';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
import { IMessageService, Severity } from 'vs/platform/message/common/message';
import { IStringDictionary } from 'vs/base/common/collections';
import { ITerminalService, ITerminalInstance, IShell } from 'vs/workbench/parts/terminal/common/terminal';
import { ITerminalInstance, IShell } from 'vs/workbench/parts/terminal/common/terminal';
import { IWorkspace } from 'vs/platform/workspace/common/workspace';
import { Keybinding } from 'vs/base/common/keybinding';
import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
......@@ -65,8 +65,7 @@ export class TerminalInstance implements ITerminalInstance {
name: string,
shell: IShell,
@IKeybindingService private _keybindingService: IKeybindingService,
@IMessageService private _messageService: IMessageService,
@ITerminalService private _terminalService: ITerminalService
@IMessageService private _messageService: IMessageService
) {
this._toDispose = [];
this._skipTerminalKeybindings = [];
......@@ -169,9 +168,9 @@ export class TerminalInstance implements ITerminalInstance {
const height = parseInt(computedStyle.getPropertyValue('height').replace('px', ''), 10);
this.layout(new Dimension(width, height));
this.setVisible(this._isVisible);
this.setCursorBlink(this._terminalService.configHelper.getCursorBlink());
this.setCommandsToSkipShell(this._terminalService.configHelper.getCommandsToSkipShell());
this.setScrollback(this._terminalService.configHelper.getScrollback());
this.setCursorBlink(this._configHelper.getCursorBlink());
this.setCommandsToSkipShell(this._configHelper.getCommandsToSkipShell());
this.setScrollback(this._configHelper.getScrollback());
}
public copySelection(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册