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

isWatching confusion #861

Closed
jbondc opened this issue Dec 1, 2015 · 5 comments
Closed

isWatching confusion #861

jbondc opened this issue Dec 1, 2015 · 5 comments
Assignees
Labels
tasks Task system issues

Comments

@jbondc
Copy link

jbondc commented Dec 1, 2015

Started to use vscode for a new project but confused about isWatching and what it does.

Here's the tasks.json config I'm currently using:
capture

Initially started with:

        {
            "taskName": "watch",
            "isWatching": true,
            "args": ["--watch", "compiler/types.ts", "compiler/scanner.ts'],
            "problemMatcher": "$tsc"
        },

But then I try to run watch then build-test, the IDE complains that a task is running.

Can someone explain the magic with "problemMatcher": "$tsc-watch" ?
https://github.com/Microsoft/vscode/blob/f0dfc2374892759438a856dfb0bb748fa5f1ae0b/src/vs/workbench/parts/tasks/node/processRunnerSystem.ts#L267

And how file watching works?
https://github.com/Microsoft/vscode-filewatcher-windows/tree/master/FileWatcher

Intuitively, would seem simpler if there were two modes of file watching "external" | "managed"

        {
            "taskName": "watch-external",
            "isWatching": "external",
            "args": ["--watch", "compiler/types.ts", "compiler/scanner.ts'],
            "problemMatcher": "$tsc"
        },
        {
            "taskName": "watch-managed",
            "isWatching": "managed", // uses IDE file watching
            "problemMatcher": "$tsc"
        },
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@Ciantic
Copy link

Ciantic commented Feb 26, 2016

This is still confusing, isn't there a way to watch and still run other tasks? Ideally one should be allowed to run multiple watches like css preprocessors like less, tsc compliation, and still run tests manually.

Additionally instead of having watcher, it would be a better if one could trigger a task when certain filetype changes, e.g. I don't need to watch for less if I could just trigger less task when *.less changes. (There are plugins for this, but this should be part of tasks.json)

@dbaeumer dbaeumer added the tasks Task system issues label Feb 29, 2016
@dbaeumer
Copy link
Member

Currently there is only support to run one task at a time. Being able to run multiple tasks in parallel is on the backlog.

@dbaeumer dbaeumer added the feature-request Request for new features or functionality label Feb 29, 2016
@dbaeumer
Copy link
Member

See #981

@dbaeumer
Copy link
Member

[Addressed in new terminal runner]

The new runner support running multiple commands in parallel all of which can be background tasks.

@dbaeumer
Copy link
Member

Closing. Task 2.0.0 can run multiple tasks in parallel.

@dbaeumer dbaeumer removed the feature-request Request for new features or functionality label Nov 10, 2017
@dbaeumer dbaeumer removed this from the Backlog milestone Nov 10, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tasks Task system issues
Projects
None yet
Development

No branches or pull requests

4 participants