Commit graph

247 commits

Author SHA1 Message Date
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
João Moreno ec805db5ed
add repository field to extensions package.json 2021-01-29 15:30:45 +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
Alexandru Dima f74ad9692f
Align @types/* dev dependencies (#112718) 2020-12-18 13:28:39 +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
Alex Ross 3689660fcc Add descriptions for npm.packageManager options
Fixes #111628
2020-12-01 15:53:30 +01:00
Alex Ross 2afcea867a Use argparse 1.0.9 in npm extension 2020-11-30 15:03:16 +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
Sandeep Somavarapu b5cd02f178 #106348 Adopt codicon for npm view 2020-11-13 09:56:48 +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
Jackson Kearl 74654f3c35
Use find-yarn-workspace-root over find-yarn-workspace-root2 (#109429) 2020-10-26 18:38:27 -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
Alex Dima 91cdca1bdb
Do not ship unnecessary files with extensions 2020-07-24 13:57:51 +02:00
NotWearingPants e4824fa66a
Treat all files with an npmrc/npmignore extension as properties/ignore files 2020-07-22 00:22:10 +03:00
Alex Ross 0acc996121
Add support for view initial state (collapsed or hidden) (#102002)
Fixes #101283
2020-07-17 09:47:33 +02:00
Alex Ross eb4a91f7ee Add when property to tasks definition
Part of #102477
2020-07-15 17:19:15 +02:00
Anoesj Sadraee cac8f2e908
Add 'pnpm' option to NPM scripts (#100654)
Co-authored-by: Alex Ross <alros@microsoft.com>
2020-07-01 15:36:37 +02:00
Martin Aeschlimann bc3e76f232 npm web: add when contexts 2020-06-29 21:53:37 +02:00
Martin Aeschlimann cc595adb2c
Merge pull request #101047 from madskristensen/patch-3
Use HTTPS urls for SchemaStore.org
2020-06-26 08:43:58 +02:00
Martin Aeschlimann 16be2c9885 used shared webpack-config for browser 2020-06-25 23:22:02 +02:00
Mads Kristensen 420abc5760
Use HTTPS urls for SchemaStore.org
SchemaStore.org now supports HTTPS and no longer rely on *.azurewebsites.net as a backdoor to HTTPS
2020-06-25 10:16:28 -07:00
Martin Aeschlimann e32da59d30 [npm] support serverless & cleanup 2020-06-19 21:58:54 +02:00
SteVen Batten b41766a0d9 tweak sizing 2020-05-27 10:52:23 -07:00
SteVen Batten b384147f84 add icon for npm scripts
refs #93964
2020-05-27 10:46:01 -07: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
Martin Aeschlimann c4bee7ac82 fix for https://github.com/microsoft/vscode/pull/92397 2020-03-29 22:47:48 +02:00
Tobias Hernstig f772cbb62c Add .npmrc file association as ini-file
Fixes #92350
2020-03-10 20:11:00 +01:00