Skip to content

Commit 222a960

Browse files
authored
Merge pull request microsoft#183040 from microsoft/merogge/run-selected
2 parents adbcbfa + 66d010b commit 222a960

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/workbench/contrib/terminal/browser/terminalService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ export class TerminalService implements ITerminalService {
506506
return this.createTerminal();
507507
}
508508
// Active instance, ensure accepts input
509-
// Don't use task terminals or other terminals that don't accept input
510-
if (!options?.acceptsInput || activeInstance?.shellLaunchConfig.type !== 'Task' && activeInstance.xterm?.isStdinDisabled !== true) {
509+
if (!options?.acceptsInput || activeInstance.xterm?.isStdinDisabled !== true) {
511510
return activeInstance;
512511
}
513512
// Active instance doesn't accept input, create and focus

0 commit comments

Comments
 (0)