Commit Graph

16 Commits

Author SHA1 Message Date
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
Alex Ross
8d171e6492 Improve multiple lock files notification
Fixes #111589
2020-12-02 14:39:46 +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
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
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
7697ef6711 Flush scripts cache when the document changes 2018-07-26 15:56:28 +02:00
Erich Gamma
22f0337064 cache the scripts for the hover 2018-07-26 09:42:38 +02:00
Erich Gamma
73b72464b3 Replace lenses with hover links 2018-07-26 09:42:36 +02:00