Change:
Type: <bBug</b"" on VS Code this task and save: this task ([Terminal] [Run Task] [Throw my error]) Enter The integrated terminal shows an error because of . Pressing Enter closes it because of .The integrated terminal shows an error because of . Pressing Enter inserts a line break into the current opened "", or at least leaves the terminal open. Terminal display: I use Git Bash of Git for Windows as my default terminal (), but I've tried and PowerShell and got the same result. Of cause, if the command is , the terminal doesn't appear because of . "Reload With Extensions Disabled" has no effect. TBH, I know this is a duplicate of . It has already been closed as a "feature-request" that didn't receive enough upvotes. It may be impolite to reopen a closed issue in this way, and I'm very hesitant to do so, but for the life of me, I can't believe that fixing this counter-intuitive behavior is within the scope of feature requests. The current behavior is surprising, not convincing. I'm sorry if there are already other ways to achieve the expected behavior. VS Code version: Code 1.79.2 (, 2023-06-14T08:57:04.379Z) OS version: WindowsNT x64 10.0. Modes: <details<summarySystem Info</summary </details<details<summaryExtensions (23)</summaryExtensionVersion ------ Bookmarks13.3.1 project-manager12.7.0 laravel-extra-intellisense0.6.3 markdown-preview-github-styles2.0.2 insert-unicode0.14.0 laravel-blade1.1.2 vscode-eslint2.4.0 vscode-deno3.19.1 EditorConfig0.16.4 gc-excelviewer4.2.57 code-eol1.0.12 haml1.4.1 live-stylus-compiler0.0.4 zenkaku0.0.3 vscode-language-pack-ja1.79. remote-containers0.295.0 live-server0.4.8 laravel-blade1.34.0 laravel5-snippets1.17.0 LiveServer5.7.9 language-stylus1.16.0 vscode-input-sequence0.2.0 markdown-all-in-one3.5.1 </details<details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --
<!-- -96bd-47a8-a0e8- --This feature request is now a candidate for our backlog. The community has 60 days to the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our . Happy Coding!
So you mean it isn't a bug? The "focus" option doesn't make focus. Is this intended behavior?
You're right - it is a bug
I'll fix that

Discussion:
*  Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ <ins> import { asArray } from 'vs/base/common/arrays'; </ins> import * as Async from 'vs/base/common/async'; import { IStringDictionary } from 'vs/base/common/collections'; import { Emitter, Event } from 'vs/base/common/event';

import Severity from 'vs/base/common/severity'; import * as Types from 'vs/base/common/types'; import * as nls from 'vs/nls'; <del> import { asArray } from 'vs/base/common/arrays'; </del> import { IModelService } from 'vs/editor/common/services/model'; import { IFileService } from 'vs/platform/files/common/files';

import { Codicon } from 'vs/base/common/codicons'; import { Schemas } from 'vs/base/common/network'; <ins> import { ThemeIcon } from 'vs/base/common/themables'; </ins> import { URI } from 'vs/base/common/uri'; <ins> import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; </ins> import { ILogService } from 'vs/platform/log/common/log'; import { INotificationService } from 'vs/platform/notification/common/notification'; import { IShellLaunchConfig, WaitOnExitValue } from 'vs/platform/terminal/common/terminal'; import { formatMessageForTerminal } from 'vs/platform/terminal/common/terminalStrings'; <del> import { ThemeIcon } from 'vs/base/common/themables'; </del> import { IViewDescriptorService, IViewsService, ViewContainerLocation } from 'vs/workbench/common/views'; import { TaskTerminalStatus } from 'vs/workbench/contrib/tasks/browser/taskTerminalStatus'; import { ProblemCollectorEventKind, ProblemHandlingStrategy, StartStopProblemCollector, WatchingProblemCollector } from 'vs/workbench/contrib/tasks/common/problemCollectors'; import { GroupKind } from 'vs/workbench/contrib/tasks/common/taskConfiguration'; <del> import { CommandOptions, CommandString, ContributedTask, CustomTask, DependsOrder, ICommandConfiguration, IConfigurationProperties, IExtensionTaskSource, InMemoryTask, IPresentationOptions, IShellConfiguration, IShellQuotingOptions, ITaskEvent, PanelKind, RevealKind, RevealProblemKind, RuntimeType, ShellQuoting, Task, TaskEvent, TaskEventKind, TaskScope, TaskSourceKind } from 'vs/workbench/contrib/tasks/common/tasks'; import { IResolvedVariables, IResolveSet, ITaskExecuteResult, ITaskResolver, ITaskSummary, ITaskSystem, ITaskSystemInfo, ITaskSystemInfoResolver, ITaskTerminateResponse, TaskError, TaskErrors, TaskExecuteKind, Triggers } from 'vs/workbench/contrib/tasks/common/taskSystem'; </del> <ins> import { IResolveSet, IResolvedVariables, ITaskExecuteResult, ITaskResolver, ITaskSummary, ITaskSystem, ITaskSystemInfo, ITaskSystemInfoResolver, ITaskTerminateResponse, TaskError, TaskErrors, TaskExecuteKind, Triggers } from 'vs/workbench/contrib/tasks/common/taskSystem'; import { CommandOptions, CommandString, ContributedTask, CustomTask, DependsOrder, ICommandConfiguration, IConfigurationProperties, IExtensionTaskSource, IPresentationOptions, IShellConfiguration, IShellQuotingOptions, ITaskEvent, InMemoryTask, PanelKind, RevealKind, RevealProblemKind, RuntimeType, ShellQuoting, Task, TaskEvent, TaskEventKind, TaskScope, TaskSourceKind } from 'vs/workbench/contrib/tasks/common/tasks'; </ins> import { ITerminalGroupService, ITerminalInstance, ITerminalService } from 'vs/workbench/contrib/terminal/browser/terminal'; import { VSCodeOscProperty, VSCodeOscPt, VSCodeSequence } from 'vs/workbench/contrib/terminal/browser/terminalEscapeSequences'; import { TerminalProcessExtHostProxy } from 'vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy';

import { IOutputService } from 'vs/workbench/services/output/common/output'; import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite'; import { IPathService } from 'vs/workbench/services/path/common/pathService'; <del> import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; </del> import { IDisposable } from 'xterm'; interface ITerminalData {

const showProblemPanel = task.command.presentation && (task.command.presentation.revealProblems === RevealProblemKind.Always); if (showProblemPanel) { this._viewsService.openView(Markers.MARKERS_VIEW_ID); <del> } else if (task.command.presentation && (task.command.presentation.reveal === RevealKind.Always)) { </del> <ins> } else if (task.command.presentation && (task.command.presentation.focus || task.command.presentation.reveal === RevealKind.Always)) { </ins> this._terminalService.setActiveInstance(terminal); this._terminalGroupService.showPanel(task.command.presentation.focus); }