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
Matt Bierner
51fa4d0172
Fix more type assertions ( #230156 )
...
* Fix more type assertions
For #211878
* Fix type error
2024-09-30 14:17:06 -07:00
susiwen8
f78d488f80
fix: task name end with space
2023-12-19 20:33:30 +08:00
susiwen8
d022a7b517
fix: install in npm script shouldn't be opened
2023-12-17 22:09:59 +08:00
Matt Bierner
952bbb6720
Adopt l10n for npm package ( #165527 )
...
For #164438
2022-11-04 13:56:39 -07:00
Johannes
0656d21d11
auto-fixed prefer-const violation
2022-06-08 17:49:21 +02:00
Megan Rogge
7c22caad55
Use I prefix for task interfaces ( #151350 )
2022-06-07 09:27:44 -07:00
Alex Ross
ae3b03a7eb
Fix npm.scripsExplorerExclude for multiroot
...
Fixes #138826
2021-12-15 11:58:15 +01: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
9efa55c419
Improve appearance of NPM scripts tree
...
Fixes #123091
2021-11-11 16:45:00 +01:00
Connor Peet
5b2dc0cad2
npm: move debug script lens into npm, clean up parsing logic
...
This keeps our npm logic in one place and avoids activating the heavier-
weight `js-debug` extension on every .json file.
Also, use the same command to debug both from the explorer and
from script lens.
Fixes https://github.com/microsoft/vscode-js-debug/issues/782
2021-02-04 18:41:27 +00:00
Alex Ross
3973012a9c
Only getPackageManager once per folder
...
Part of #115384
2021-02-04 16:45:24 +01:00
Jonathan Mataloni
9441f1c645
Add support for npm scripts with a space ( #113840 )
...
This PR fixes #113750
2021-01-18 12:02:53 +01:00
Bohdan Yevchenko
445f259e34
Add sorting to npm scripts ( #112725 )
...
This PR fixes #92773 - npm scripts panel is not ordered
2020-12-22 10:33:42 +01:00
Alex Ross
59ba6494b9
Better timing for multiple lock files warning
...
Fixes #111635
2020-12-09 10:10:58 +01:00
Alex Ross
8d171e6492
Improve multiple lock files notification
...
Fixes #111589
2020-12-02 14:39:46 +01:00
Alex Ross
eea8648466
Use vscode.open in NPM scripts view
...
Part of #110497
2020-11-13 14:42:54 +01:00
Alex Ross
7b5849b123
Fix build
2020-11-12 16:36:02 +01:00
Alex Ross
bea76730f1
feat: Autodetect npm.packageManager #102050 ( #102494 )
...
Detects the preferred package manager
and if multiple are present, warns and uses
in priority order: npm => yarn => pnpm
Fixes #102050
Co-authored-by: Alex Ross <alros@microsoft.com >
2020-11-02 14:48:11 +01:00
Alex Ross
8d0ca78841
Revert "feat: Autodetect npm.packageManager #102050 ( #102494 )"
...
This reverts commit f8c0e3b612 .
2020-10-27 10:07:45 +01:00
Shivang Tripathi
f8c0e3b612
feat: Autodetect npm.packageManager #102050 ( #102494 )
...
Detects the preferred package manager
and if multiple are present, warns and uses
in priority order: npm => yarn => pnpm
Fixes #102050
Co-authored-by: Alex Ross <alros@microsoft.com >
2020-10-09 11:01:47 +02:00
Connor Peet
916de64d89
fix: debug buttons in a nested package.json
...
Fixes #108000
2020-10-02 14:17:17 -07:00
Alex Ross
66c63c5d70
Update npm tasks when npm refresh is run
...
Fixes #106780
2020-09-17 11:30:24 +02:00
Alex Ross
0de8d51904
Finalize task detail API
...
Fixes #69785
2020-08-27 11:08:48 +02:00
Connor Peet
85b70cc872
npm: enable debugging all scripts
...
Fixes https://github.com/microsoft/vscode/issues/104403
Fixes https://github.com/microsoft/vscode/issues/102847
2020-08-10 16:24:39 -07:00
Matt Bierner
7ae7343973
Fix some strict null errors revealed by change to emitter
2020-04-08 18:06:24 -07:00
Miguel Solorio
573fe9e800
Update npm scripts explorer to use codicons (ref #90911 )
2020-03-04 16:13:36 -08:00
Erich Gamma
e77c58dd0b
Inform user when 'npm.autoDetect' is off.
2020-02-20 16:17:18 +01:00
Alex Ross
87998af618
Add task detail property and adopt in npm extension
...
Fixes #69785
2019-10-22 15:56:21 +02:00
Erich Gamma
4225aa8a9a
Remove inefficient code to set a custom tooltip
2019-10-21 15:05:01 +02:00
Erich Gamma
9fee53765e
Fixing #76711 handle the case that a script is customized in the tasks.json
2019-08-27 19:40:45 +02:00
Erich Gamma
67b0d5805e
Fixing #78474 don't move focus on click
2019-08-27 11:42:33 +02:00
Alex Ross
18177c58cc
Add a tooltip to scripts in NPM script view ( #61596 )
...
Fixes #55218
2018-10-29 14:15:55 +01:00
Matt Bierner
92a9a07213
Remove duplicate blank lines at the start of some extension src files
2018-10-02 16:28:19 -07:00
Matt Bierner
ff957050db
Remove use strict in extensions (part 2)
...
We compile using alwaysStrict so this directive is not needed
2018-10-02 16:23:27 -07:00
Matt Bierner
936742b5d1
Onboard npm to use shared tsconfig
2018-10-01 16:43:18 -07:00
Erich Gamma
6bee7fc45d
Simplify label and do not show the folder name
2018-09-14 10:57:58 +02:00
Erich Gamma
f7653eb02b
Fixing NPM Scripts explorer shows the root folder only on the root package.json #50845
2018-09-14 10:52:50 +02:00
Erich Gamma
80b08b4c7f
Add code lenses to run/debug a script
2018-07-20 09:43:48 +02:00
Erich Gamma
9a924f71f4
Fix for #54085 npmScript explorer doesn´t show scripts with same name in multi root setup
2018-07-17 08:53:26 +02:00
Erich Gamma
7452fe03a0
Generalize the debug argument matching
2018-07-03 16:56:27 +02:00
Dirk Baeumer
e5c3c10853
Remove old proposed task API
2018-06-07 10:05:47 +02: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
5d8467dffe
Add inline action for running 'debug scripts'
2018-05-23 22:56:40 +02:00
Erich Gamma
c0126de1f3
Render pre/post scripts different from regular scripts
2018-05-15 16:22:40 +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
Erich Gamma
a411c2f4e6
Fix for #49237 filter out duplicate task entries
2018-05-08 12:42:28 +02:00