Skip to content

Tasks: 'focus' overrides 'reveal' property in presentation #249718

Closed as not planned
@arookas

Description

@arookas

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.100.2 848b80a
  • OS Version: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. Set "focus": true and "reveal": "never" for build task
  2. Run task
  3. Terminal is revealed

This is not mentioned in the task.json schema:

  /**
   * Controls whether the panel showing the task output is taking focus.
   * Defaults to `false`.
   */
  focus?: boolean;

What I've been trying to get to work is this behavior:

  1. Set "reveal: "silent" and "focus": true in build task
  2. Run task
  3. Terminal is not revealed
  4. If the task was successful, the task exits without revealing
  5. If the task has a problem, the terminal is revealed and focused

Is there any way I can achieve this behavior?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions