-
Notifications
You must be signed in to change notification settings - Fork 30.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
Npm Scripts explorer, setting to run by default instead of open? #49204
Comments
(Experimental duplicate detection) |
Nope bot, doesn't look a dup to me but you know more 👍 |
@albinotonnina I´ve added an inline action that allows you to run a script on click (see below). I hope this covers your request, please try it in the latest insiders build. |
Initial user feedback was that it is too confusing to run a task on single click and the explorer should more behave like an outline and the single click is also consistent with the file explorer. We will also add support for a double click action and triggering a task on double click make sense to me. The PR looks good to me. |
Hello @egamma, thanks for your reply. |
Personally I would like to run tasks via double click on a task. However I do understand that some people prefer to open the config instead, thus my PR adding it as a configuration option. I like the idea with the "run" button at the end of the line. It is only visible when you hover over the task. This type of interaction reminds me more of the "Edit Button" from the User Settings / settings.json. My suggestion would be to switch the two Buttons. With the current solution there would be no easy way to enter debug mode. |
Added a setting npm.scriptExplorerAction that can be set to either open and run. This should address this feature request. |
Steps to Reproduce:
Feature request:
Similarly to this extension, would it be useful for some people to have a setting that by default, on click, run a task instead of opening it in the package.json?
Thanks!
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: