Move onto ITerminalConfigurationService

This commit is contained in:
Daniel Imms 2024-04-02 06:54:36 -07:00
parent 4830b7f376
commit 4fe8f60274
No known key found for this signature in database
GPG key ID: E5CF412B63651C69
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ export class TerminalEditor extends EditorPane {
// occurs on the selection itself.
const terminal = this._terminalEditorService.activeInstance;
terminal?.focus();
} else if (this._terminalService.configHelper.config.middleClickBehavior === 'paste') {
} else if (this._terminalConfigurationService.config.middleClickBehavior === 'paste') {
const terminal = this._terminalEditorService.activeInstance;
terminal?.paste();
}

View file

@ -344,7 +344,7 @@ export class TerminalTabbedView extends Disposable {
// Drop selection and focus terminal on Linux to enable middle button paste when click
// occurs on the selection itself.
terminal.focus();
} else if (this._terminalService.configHelper.config.middleClickBehavior === 'paste') {
} else if (this._terminalConfigurationService.config.middleClickBehavior === 'paste') {
terminal.paste();
}
} else if (event.which === 3) {