-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Npm Script Explorer tries to execute the labels of a task instead of the script #76711
Comments
(Experimental duplicate detection) |
Just installed the new release. |
These are no duplicates of this problem. |
Does no one have the same problem or do I something wrong? |
@daniel-schulz not clear what your exact scenario is, but if you just want to run a script from the package.json, then you do not need to define tasks. Can you just delete your 'tasks.json' file and try to run the scripts from the NPM Script Explorer directly. If this doesn't do what you want, then please provide a |
@egamma Thank you for the reply. I want to use the I've attached a simple workspace with example |
Thanks for the repro, the issue is confirmed. The code had a check that the script name exists in the package.json, which doesn't work when the task is defined in the tasks.json. I've removed this guard. |
Thank you very much @egamma. |
Steps to Reproduce:
BTW: Executing the task in the command panel works fine:
I've also recorded the issue see video in the zip file:
video_vscode_npm_scipt_bug.zip
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: