File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,7 @@ export function registerTerminalActions() {
545
545
const terminalService = accessor . get ( ITerminalService ) ;
546
546
const terminalGroupService = accessor . get ( ITerminalGroupService ) ;
547
547
const codeEditorService = accessor . get ( ICodeEditorService ) ;
548
+ const terminalEditorService = accessor . get ( ITerminalEditorService ) ;
548
549
549
550
const instance = await terminalService . getActiveOrCreateInstance ( ) ;
550
551
const editor = codeEditorService . getActiveCodeEditor ( ) ;
@@ -560,7 +561,11 @@ export function registerTerminalActions() {
560
561
text = editor . getModel ( ) . getValueInRange ( selection , endOfLinePreference ) ;
561
562
}
562
563
instance . sendText ( text , true ) ;
563
- return terminalGroupService . showPanel ( ) ;
564
+ if ( instance . target === TerminalLocation . Editor ) {
565
+ terminalEditorService . revealActiveEditor ( ) ;
566
+ } else {
567
+ terminalGroupService . showPanel ( ) ;
568
+ }
564
569
}
565
570
} ) ;
566
571
registerAction2 ( class extends Action2 {
You can’t perform that action at this time.
0 commit comments