-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Add type
property for preLaunchTask
#223081
Comments
Correct me if I'm wrong -- I don't know all the intricacies of the task system by far -- but doesn't the label string already reference a task defined in the tasks.json, and could we read the type from there? |
the task might not be contributed in the another issue - |
So, I believe that we're only activating all extension providers when we cannot find the right one in the |
So ideally, we'd check if the |
Referencing
It's hard for me to give good input here as I don't really know how tasks work in relation to
|
I think I have a solution. We should only be activating when the build task is actually run. I see we're activating earlier than that, which can be prevented. |
Closing this issue. We don't need to add a |
Currently, when Instead, I think we should try to find a default task in the If there isn't one, then we'll fall back to the current behavior - activating all providers. |
Idea from @alexr00:
In order to reduce the number of activations, we could add a
type
property to thepreLaunchTask
so that we know which extensions, if any, to activate when a user starts debugging and don't have to activate all of them.No extensions are activated for type
shell
or
Only
npm
extension is activatedThe text was updated successfully, but these errors were encountered: