Alex Ross
3c238e71db
Add "hasPackageJson" check back to npm view
...
and let it find files in directories
Fixes #117950
2021-03-04 14:39:04 +01:00
Alex Ross
a4a6607ceb
Use weak shell quoting for npm tasks with --
...
Part of #115876
2021-02-05 16:22:55 +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
83993fb92c
Fix run npm script in folder command
...
Fixes #112152
2020-12-09 16:25:00 +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
Martin Aeschlimann
3ceea17846
npm: use project dir when using npm
2020-11-25 11:53:14 +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
256066f94c
Fix preffered pm when pm can't be determined
2020-11-06 11:30:29 +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
Jackson Kearl
e3db76ab7f
Update import
2020-10-26 19:04:26 -07:00
Alex Ross
0b148e83db
Provide command to get package manager
...
Fixes #109071
2020-10-21 15:27:18 +02:00
Martin Aeschlimann
8d29dde51c
package.json dependency completion: npm command not used on windows. Fixes #108605
2020-10-13 17:05:57 +02:00
Martin Aeschlimann
42ddf0fd65
fix isValidNPMName
2020-10-13 09:57:28 +02:00
Alex Ross
5742413347
Fix preffered pm when pm can't be determined
2020-10-12 15:25:05 +02: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
Justin Steven
e8ceafb07a
Fix a bypass for CVE-2020-16881
...
Fixes #107951
Uses child_process.execFile() rather than child_process.exec() to more
effectively resolve the command injection vulnerability.
2020-10-02 17:21:51 +10: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
Martin Aeschlimann
88664e267a
npm: avoid invalid lookups
2020-08-24 16:58:36 +02:00
Alex Ross
bb3c233e97
Fix when NPM view is shown
...
#104591
2020-08-14 11:33:53 +02:00
Martin Aeschlimann
4899592904
npm.fetchOnlinePackageInfo is not respected in latest build. Fixes #103540
2020-08-12 11:59:56 +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
Martin Aeschlimann
e32da59d30
[npm] support serverless & cleanup
2020-06-19 21:58:54 +02:00
Alex Ross
45da8ac9bc
Fix resolveTask for npm install
...
Fixes #97197
2020-05-11 16:20:22 +02: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
Matt Bierner
ea0880611f
Use non-deprecated version of registerTasksProvider
...
For #88391
2020-02-12 17:20:05 -08:00
Johannes Rieken
430de16fef
fix compilos and adopt proposed api usage, #10266
2020-01-16 17:52:18 +01:00
Alex Ross
acb595b158
Exclude .vscode-test folder from npm task detection
...
Part of #88328
2020-01-09 10:36:44 +01:00
Martin Aeschlimann
5f1b81b497
[css/html/json] provide replace & insert proposals
2019-12-02 21:43:59 +01:00
Alex Ross
5a1242ab45
Detail for npm: install task ( #83765 )
...
Fixes #83654
2019-11-01 15:26:58 +01:00
Matt Bierner
76a8e836c5
Use standard vscode.proposed.d.ts instead of copying it
2019-10-23 13:20:58 -07:00
Alex Ross
56246ed3d8
Update vscode.proposed.d.ts in npm extension
2019-10-22 18:20:21 +02: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
7485ffde50
Some polish for 'Run NPM Script in Folder'
2019-10-14 16:13:06 +02: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
Erich Gamma
3577fd0fab
Merge branch 'master' into runNpmFromContextMenu
2019-09-30 17:00:58 +02:00
Martin Aeschlimann
bae6f5f1a5
[json] "Fetch Online Package Info" feature doesn't work when npm is not present. Fixes #77066
2019-09-30 16:59:34 +02:00
Erich Gamma
846fefe1b7
Merge branch 'master' into runNpmFromContextMenu
2019-09-30 16:52:14 +02:00
Helen Choi
757097d2d8
fix UX bug, runs when user clicks the result now
2019-08-29 10:47:26 -07:00
Helen Choi
1f78795f58
enable running individual npm scripts in the containing folder
2019-08-27 19:25:20 -07:00