actboy168 / vscode-tasks

MIT License
37 stars 14 forks source link

Trigger "onTaskType:*" event on all task providers #50

Open ThaDaVos opened 1 year ago

ThaDaVos commented 1 year ago

I was running into issues with the GO extension constantly being loaded in non-go projects - after disabling your extension the issue was gone - so apparently you're triggering the onTaskType: event for all extensions available - I just don't get why as the extension should only look at the tasks.json as far as I know?

https://github.com/golang/vscode-go/issues/2962

ThaDaVos commented 1 year ago

There you go - you're triggering a fetchTasks which causes VSCode to load all tasks, so providers and tasks.json: afbeelding https://github.com/actboy168/vscode-tasks/blob/7edd2b4896d071cb63a9cf06612e7191e30928c5/extension.js#L486

actboy168 commented 1 year ago

I think this is a design mistake of vscode. Enumerating command does not activate the extension that provides the command. Tasks should also be designed like this.

I currently have no solution to your problem.

ThaDaVos commented 12 months ago

Please help by upvoting: https://github.com/microsoft/vscode/issues/192657