mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-26 09:45:54 +01:00
Merge pull request #104734 from brajkowski/issue-104612
Run Selected Text action should use the active code editor
This commit is contained in:
@@ -652,7 +652,7 @@ export function registerTerminalActions() {
|
||||
const codeEditorService = accessor.get(ICodeEditorService);
|
||||
|
||||
const instance = terminalService.getActiveOrCreateInstance();
|
||||
let editor = codeEditorService.getFocusedCodeEditor();
|
||||
let editor = codeEditorService.getActiveCodeEditor();
|
||||
if (!editor || !editor.hasModel()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user