Commit Graph

51 Commits

Author SHA1 Message Date
xymopen_Official
e20adc378e Add node as npm script runner (2nd) (#240527)
* refactor: Separate `createScriptRunnerTask` and `createInstallationTask` from `createTask`

* feat: Add `npm.scriptRunner`

* feat: Add Node.js as script runner

* refactor: Refactor `isPrePostScript`

* refactor: Extract `get*Command`

* fix: Typo

* style: Remove no-op `catch`es

* fix: `node --run` doesn't support `--silent`

* refactor: Use `.map` in `escapeCommandLine`

* chore: Remove TODO

Upstream reviewer is ok with current state

* fix: Fix error the resolved task definition differs from the original
2025-02-17 04:20:07 +00:00
Rob Lourens
0264c2afc0 Revert "Add node as npm script runner (#236967)" (#240413)
This reverts commit 6a5991cfb6.
2025-02-11 20:17:30 +01:00
xymopen_Official
6a5991cfb6 Add node as npm script runner (#236967)
* refactor: Separate `createScriptRunnerTask` and `createInstallationTask` from `createTask`

* feat: Add `npm.scriptRunner`

* feat: Add Node.js as script runner

* refactor: Refactor `isPrePostScript`

* refactor: Extract `get*Command`

* fix: Typo

* style: Remove no-op `catch`es

* fix: `node --run` doesn't support `--silent`

* refactor: Use `.map` in `escapeCommandLine`

* chore: Remove TODO

Upstream reviewer is ok with current state
2025-02-07 17:26:29 +00:00
Marvin A. Ruder
4645305f14 Add Bun as package manager to npm extension
* Auto-detect Bun by looking for `bun.lockb` lockfile
* Extend `npm.packageManager` setting
* Update documentation

Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
2023-11-11 16:37:29 +00:00
Martin Aeschlimann
dac409ee91 set virtualWorkspaces: limited (#168177) 2022-12-06 16:52:23 +01:00
Greg Van Liew
27a550f451 Settings description edits (#166315)
* Settings description edits

* Remove unnecessary trailing line returns
2022-11-14 13:47:54 -08:00
Babak K. Shandiz
2150470804 🎁 Add option to disable script hovers in package.json files (#156752)
* ⚙️ Define `npm.scriptHover` configuration parameter

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🌐 Add localized description for `npm.scriptHover` config parameter

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🎁 Respect `npm.scriptHover` config parameter in `NpmScriptHoverProvider`

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2022-08-01 09:43:31 -07:00
Alex Ross
231fe61ab5 Add setting to exclude scripts from NPM scripts view
Fixes #71635
2021-11-12 17:14:51 +01:00
Alex Ross
736896527c Improve npm trust message 2021-05-17 10:50:33 +02:00
SteVen Batten
ed16789225 localise workspace trust strings for exts 2021-04-22 07:44:24 -07:00
Alex Ross
3689660fcc Add descriptions for npm.packageManager options
Fixes #111628
2020-12-01 15:53:30 +01:00
Alex Ross
0b148e83db Provide command to get package manager
Fixes #109071
2020-10-21 15:27:18 +02:00
Greg Van Liew
93e87cabe5 Another nit in settings comment 2019-11-13 07:29:04 -08:00
Erich Gamma
7485ffde50 Some polish for 'Run NPM Script in Folder' 2019-10-14 16:13:06 +02:00
helen3141
34648a0cc6 Merge branch 'master' into runNpmFromContextMenu 2019-10-11 15:38:33 -07:00
helen3141
cecda63be5 Pull Request feedback: updated documentation and naming, read from cache if available instead of creating new tasks 2019-10-11 15:18:31 -07:00
Lucas Larson
94adc2a641 Repair npm links (#70325)
https://registry.npmjs.org instead of https://registry.npmjs/org
2019-10-08 16:05:09 +02:00
Erich Gamma
846fefe1b7 Merge branch 'master' into runNpmFromContextMenu 2019-09-30 16:52:14 +02:00
Helen Choi
1f78795f58 enable running individual npm scripts in the containing folder 2019-08-27 19:25:20 -07:00
Erich Gamma
de3c53b21d Adjust description to match the behaviour of the checkbox 2019-08-27 22:59:41 +02:00
Pine Wu
c9764c85d7 Settings description update for #54690 2018-08-01 14:46:33 -07:00
Alex Dima
47212be6f3 Settings sweep (#54690) 2018-07-30 12:35:43 +02:00
Erich Gamma
83a42a58af Contribute run selected to the context menu 2018-07-29 11:38:22 +02:00
Erich Gamma
345440f62f prefix command with extension name 2018-07-29 11:12:25 +02:00
Erich Gamma
82423033d9 Added command to Run the selected npm script 2018-07-28 22:10:29 +02:00
Ramya Rao
f51c30d8f4 Allow users to opt-out of features that send online requests in the background (#55097) 2018-07-27 15:42:17 -07:00
Erich Gamma
73b72464b3 Replace lenses with hover links 2018-07-26 09:42:36 +02:00
Erich Gamma
1c14e736d2 Add missing nls key in package.json, fixing #54714 2018-07-23 09:34:03 +02:00
Erich Gamma
80b08b4c7f Add code lenses to run/debug a script 2018-07-20 09:43:48 +02:00
Erich Gamma
5c5f93cdbc Support to run the selected script in the editor 2018-07-18 12:58:19 +02:00
Greg Van Liew
14274ef7d1 Use VS Code with a space in built-in extension descriptions. (#53080)
* Use VS Code with a space in comments

* User VS Code with a space in built-in extension descriptions.
2018-06-26 18:38:18 -07:00
Erich Gamma
83cb1d7799 Support to run npm install from a package node 2018-05-28 14:41:28 +02:00
Erich Gamma
baf3b60651 Merge NPM Scripts: Added configuration option to change default click action #49282 2018-05-28 11:09:36 +02:00
Erich Gamma
6b129c5558 remove filterPrePostScripts 2018-05-15 16:22:39 +02:00
Erich Gamma
4f652fc36c add setting to define whether pre or post scripts should be filtered 2018-05-14 22:49:49 +02:00
Josh Schreuder
1c3fc6fa21 Fix spelling mistake in NPM task tooltip (#48980)
ommitted -> omitted
2018-05-07 11:51:17 +02:00
Erich Gamma
a87b396730 FIxing #48806 npm.enableScriptExplorer requires reloading the window 2018-04-27 11:27:12 +02:00
Erich Gamma
20994d2b53 Remove unneeded keys 2018-04-26 16:32:38 +02:00
Erich Gamma
d9f8813eb6 Fixing issue #48539 improve wording of error message 2018-04-25 13:33:43 +02:00
Erich Gamma
48b0ec47da added config option whether the explorer should be enabled. 2018-04-21 10:13:34 -07:00
Erich Gamma
76495e8b0a Change view name to title case 2018-04-15 23:10:02 +02:00
Erich Gamma
7fc78e7b0c remove explorerVisible configuration setting 2018-04-15 22:04:17 +02:00
Erich Gamma
3d5f0b75af externalize strings 2018-03-31 23:06:43 +02:00
Erich Gamma
a6dde81592 Fixing #31217 npm script not detected if the package.json is not in root folder 2018-02-28 16:51:43 +01:00
Erich Gamma
bc540f119d externalize strings 2018-02-28 12:28:25 +01:00
Erich Gamma
eaec7c3383 Fixing #43978 add description/readme 2018-02-21 13:16:58 +01:00
Matt Bierner
0421cba67f Localize npm.packageManager 2017-11-02 16:44:55 -07:00
Dániel Tar
a05e3d996a Fix different error message in source and package.nls for npm package (#37096)
* Fix package.nls.json for npm

Error message was different in main.ts.

* Fix language string key in npm/src/main.ts
2017-10-31 14:27:24 +01:00
Erich Gamma
117e621595 Reject promise when there is a parse error in a package.json file. 2017-10-27 16:06:36 +02:00
Erich Gamma
10a5cee648 added silent setting 2017-07-13 16:43:18 +02:00