Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task "clear" doesn't work for "npm" task #62404

Closed
roblourens opened this issue Nov 1, 2018 · 1 comment
Closed

Task "clear" doesn't work for "npm" task #62404

roblourens opened this issue Nov 1, 2018 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@roblourens
Copy link
Member

From #30058

I don't know whether this is supposed to work. I modified the build task from https://github.com/Microsoft/vscode-chrome-debug-core/blob/master/.vscode/tasks.json to clear the terminal before building, and to be a build task instead of watching. So it looks like this:

{
    "label": "my build task",
    "type": "npm",
    "script": "build",
    "problemMatcher": "$gulp-tsc",
    "presentation": {
        "echo": true,
        "reveal": "always",
        "focus": false,
        "panel": "shared",
        "showReuseMessage": true,
        "clear": true
    },
    "group": {
        "kind": "build",
        "isDefault": true
    }
}
  • I run task my build task
  • I run it a second time
  • It doesn't clear the terminal, the output from the first run is still visible

If I modify it to be a shell task then it does clear the terminal as I'd expect

{
    "label": "my shell build task",
    "type": "shell",
    "command": "npm run build",
    "problemMatcher": "$gulp-tsc",
    "presentation": {
        "echo": true,
        "reveal": "always",
        "focus": false,
        "panel": "shared",
        "showReuseMessage": true,
        "clear": true
    }
}
@alexr00
Copy link
Member

alexr00 commented Nov 5, 2018

Thanks for filing! Duplicate of #62474

@alexr00 alexr00 closed this as completed Nov 5, 2018
@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 5, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants