Skip to content

Presentation (reveal=silent, focus=true) not "focusing" when errors are present #88208

@AntonioL

Description

@AntonioL

Consider the following tasks.json file:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {   
         "label": "(Hy) Run pytest",
            "type": "shell",
            "command": "${config:python.pythonPath} -m pytest",
            "group": {
                "kind": "test",
                "isDefault": true,
            },
            "presentation": {
                "reveal" : "always",
                "focus": true
            }
        },
        {
            "label": "(Hy) Check syntax",
            "type": "shell",
            "command": "pipenv run hy ${file}",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation" : {
                "reveal": "silent",
                "focus": true
            }
        }
    ]
}

Consider the second task, I would expect VS Code to "focus" on the terminal when errors are present (and thus the task output is being "presented").

I have the following setup:
Version: 1.41.1
Commit: 26076a4
Date: 2019-12-18T15:04:31.999Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.0.0-37-generic

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytasksTask system issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions