提交 a49ec266 编写于 作者: D Daniel Imms

Remove .bind(this) pattern in terminal

Fixes #15719
上级 cd269800
......@@ -62,8 +62,8 @@ export class TerminalPanel extends Panel {
this._terminalService.setContainers(this.getContainer().getHTMLElement(), this._terminalContainer);
this._register(this._themeService.onDidColorThemeChange(this._updateTheme.bind(this)));
this._register(this._configurationService.onDidUpdateConfiguration(this._updateFont.bind(this)));
this._register(this._themeService.onDidColorThemeChange(themeId => this._updateTheme(themeId)));
this._register(this._configurationService.onDidUpdateConfiguration(() => this._updateFont()));
this._updateFont();
this._updateTheme();
......
......@@ -56,7 +56,7 @@ export class TerminalService implements ITerminalService {
this._onInstanceTitleChanged = new Emitter<string>();
this._onInstancesChanged = new Emitter<string>();
this._configurationService.onDidUpdateConfiguration(this.updateConfig.bind(this));
this._configurationService.onDidUpdateConfiguration(() => this.updateConfig());
this._terminalFocusContextKey = KEYBINDING_CONTEXT_TERMINAL_FOCUS.bindTo(this._contextKeyService);
this._configHelper = <TerminalConfigHelper>this._instantiationService.createInstance(TerminalConfigHelper, platform.platform);
this.onInstanceDisposed((terminalInstance) => { this._removeInstance(terminalInstance); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册