-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
"Run tasks" calls same Task Provider repeatedly. #7496
Comments
The culprit seems to be here:
|
cc @elaihau |
- detected tasks are fetched N+1 times when users click "Run Tasks" from the menu, where N is the number of customized detected tasks in the tasks.json. - fixes #7496 Signed-off-by: Liang Huang <lhuang4@ualberta.ca>
- detected tasks are fetched N+1 times when users click "Run Tasks" from the menu, where N is the number of customized detected tasks in the tasks.json. - fixes #7496 Signed-off-by: Liang Huang <lhuang4@ualberta.ca>
Thinking about this (and my approach for a fix in #7633) a bit more... |
In principle, there are two ways to establish such a scope:
|
A first try was based on cache invalidation: #7633 |
The second one it based on an explicit token. |
Description
I have written a VS Code extension that registers a task provider for type "foobar" and prints to the console when "provideTasks()" is called.
I have a workspace where I configure 5 tasks of type "npm" in /.theia/tasks.json. When I now run the command "Run Task", the console output shows that "provideTasks" is called 6 times before the dialog for selecting the task to run is opened.
In general, the number of times "provideTasks()" is called is n+1, where n is the number of tasks in "tasks.json".
The text was updated successfully, but these errors were encountered: