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
Miguel Solorio
573fe9e800
Update npm scripts explorer to use codicons (ref #90911 )
2020-03-04 16:13:36 -08:00
Martin Aeschlimann
b2e0925ba1
update jsonc-parser
2020-02-21 15:03:33 +01: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
Johannes Rieken
f01f7ebe93
fix some (future) linting issues
2019-12-31 09:54:04 +01:00
Martin Aeschlimann
5f1b81b497
[css/html/json] provide replace & insert proposals
2019-12-02 21:43:59 +01:00
Greg Van Liew
93e87cabe5
Another nit in settings comment
2019-11-13 07:29:04 -08:00
Alex Ross
5a1242ab45
Detail for npm: install task ( #83765 )
...
Fixes #83654
2019-11-01 15:26:58 +01:00
Martin Aeschlimann
9a9c0e351b
update request-light
2019-10-31 12:43:33 +01:00
Erich Gamma
3a9907df1a
Add missing activation event
2019-10-28 17:17:01 +01:00
Benjamin Pasero
ca22de4b17
debt - bump node.d.ts dependency in extensions to 12.x (part of #82514 )
2019-10-28 08:11:47 +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
34648a0cc6
Merge branch 'master' into runNpmFromContextMenu
2019-10-11 15:38:33 -07:00
helen3141
a7ff5b1ac8
Pull Request feedback: do not show command in command palette
2019-10-11 15:31:01 -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
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
Erich Gamma
de3c53b21d
Adjust description to match the behaviour of the checkbox
2019-08-27 22:59:41 +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
Martin Aeschlimann
379623e369
update yarn.lock files
2019-08-21 18:04:55 +02:00
Martin Aeschlimann
be8f289fa9
update jsonc-parser
2019-08-21 16:55:59 +02:00
Alex Ross
466e5ef6c2
Use resolveTask in npm extension
...
Fixes #76520
2019-08-05 15:54:13 +02:00
Erich Gamma
af4bfe6ef4
Show the npm script explorer when there is a top level package.json
2019-07-29 14:27:07 +02:00
Miguel Solorio
d2757d83c8
Fix #77746 , de-emphasizes pre/post scripts
2019-07-22 08:06:14 -07:00
Miguel Solorio
e4ea68f5b6
Update icons for npm script explorer
2019-07-19 11:34:38 -07:00
Martin Aeschlimann
9bc4699da4
package.json suggestions stopped working - skimdb is being retired. Fixes #75274
2019-06-13 17:30:10 +02:00
Martin Aeschlimann
4284a8ff20
use --json
2019-06-13 16:58:34 +02:00
Martin Aeschlimann
8cbd7355ee
Merge branch 'master' into pr/jk21/72763
2019-06-13 16:06:33 +02:00
Aurélien Pupier
7a5bca9faf
Add License field to package.jsons #68423 ( #68771 )
...
it should avoid to have "warning XXX: No license field" during yarn
build
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
2019-06-06 11:44:50 +02:00
Benjamin Pasero
d78a75973c
update @types/node ( #74881 )
2019-06-05 10:20:01 +02:00
Jonas Kemper
d78e970375
remove logs
2019-04-23 16:58:00 +02:00
Jonas Kemper
12e287dc3d
implement npm view for version completions and hover suggestions
2019-04-23 16:34:35 +02:00
Jonas Kemper
6740eba07a
merge packageJSONContribution to latest master
2019-04-23 15:04:21 +02:00
Benjamin Pasero
e2d1fd06d1
debt - update extensions node dependency to 10.x
2019-02-07 08:49:36 +01:00
Martin Aeschlimann
54adadd72c
fix lgtm warnings
2019-01-17 20:53:18 +01:00
Martin Aeschlimann
20906c33c4
[json] IntelliSense doesn't work for scoped packages in package.json. Fixes #62377
2019-01-08 17:42:52 +01:00
Matt Bierner
c109d319fe
Second pass converting for index based looping to for-of loops
...
More manual conversion of index based for loops to for-of loops
2019-01-04 12:03:23 -08:00
Matt Bierner
b4964bcf35
Replace some common index based for loops with for-of
loops
...
Replaces many loops of the form:
```js
for (let i = 0; i < elements.length; ++i) {
const i = elements[i];
...
}
```
with:
```js
for (const element of elements) {
...
}
```
Mix of a horrible regex based find/replace and manual touch ups
2019-01-03 19:11:18 -08:00
Matt Bierner
5cc00861fc
Enable no-var-keyword tslint rule
2019-01-03 18:02:48 -08:00
Rob Lourens
ef2547d547
replace void 0 with undefined
2019-01-03 11:20:19 -08:00
Erich Gamma
cee0951b13
Enable Collapse All action in the npm script explorer
2018-11-30 10:25:41 +01:00
Miguel Solorio
4533aa0c0a
Merge pull request #62739 from RDIL/master
...
Optimize images
2018-11-08 08:42:57 -08:00
Alex Ross
cfd2ea16e8
Update NPM script explorer tree view when package.json changes
...
Fixes #62415
2018-11-07 11:58:51 +01:00
ImgBotApp
d412f89baf
[ImgBot] Optimize images
...
*Total -- 201.93kb -> 142.81kb (29.28%)
/extensions/npm/images/npm_icon.png -- 3.21kb -> 0.51kb (84.1%)
/src/vs/workbench/parts/debug/electron-browser/media/stepout-tb.png -- 2.89kb -> 0.47kb (83.83%)
/src/vs/workbench/parts/debug/electron-browser/media/stop-tb.png -- 1.50kb -> 0.35kb (76.43%)
/src/vs/workbench/parts/debug/electron-browser/media/pause-tb.png -- 1.55kb -> 0.37kb (76.34%)
/src/vs/workbench/browser/parts/editor/media/forward-tb.png -- 1.57kb -> 0.37kb (76.25%)
/src/vs/workbench/browser/parts/editor/media/back-tb.png -- 1.52kb -> 0.37kb (75.53%)
/src/vs/workbench/parts/debug/electron-browser/media/continue-tb.png -- 1.60kb -> 0.42kb (73.48%)
/src/vs/workbench/parts/debug/electron-browser/media/stepinto-tb.png -- 1.66kb -> 0.47kb (71.51%)
/src/vs/workbench/parts/debug/electron-browser/media/restart-tb.png -- 1.91kb -> 0.59kb (68.84%)
/src/vs/workbench/parts/debug/electron-browser/media/stepover-tb.png -- 1.93kb -> 0.62kb (67.75%)
/resources/linux/code.png -- 5.76kb -> 2.66kb (53.86%)
/extensions/html-language-features/icons/html.png -- 4.40kb -> 2.28kb (48.15%)
/extensions/theme-seti/icons/seti-circular-128x128.png -- 8.73kb -> 4.70kb (46.12%)
/extensions/typescript-language-features/icon.png -- 1.60kb -> 0.97kb (39.15%)
/src/vs/platform/extensionManagement/node/media/defaultIcon.png -- 1.65kb -> 1.03kb (37.49%)
/src/vs/workbench/parts/extensions/electron-browser/media/defaultIcon.png -- 1.65kb -> 1.03kb (37.49%)
/extensions/vscode-api-tests/testWorkspace/sub/image.png -- 35.87kb -> 24.99kb (30.33%)
/extensions/vscode-api-tests/testWorkspace/image.png -- 35.87kb -> 24.99kb (30.33%)
/resources/win32/code_150x150.png -- 0.55kb -> 0.39kb (29.96%)
/extensions/css-language-features/icons/css.png -- 5.07kb -> 3.63kb (28.37%)
/extensions/json-language-features/icons/json.png -- 5.84kb -> 4.33kb (25.89%)
/extensions/markdown-language-features/icon.png -- 1.19kb -> 0.88kb (25.86%)
/src/vs/workbench/parts/extensions/electron-browser/media/theme-icon.png -- 9.90kb -> 7.42kb (25.1%)
/extensions/php-language-features/icons/logo.png -- 10.85kb -> 8.99kb (17.13%)
/extensions/gulp/images/gulp.png -- 7.36kb -> 6.20kb (15.8%)
/extensions/merge-conflict/resources/icons/merge-conflict.png -- 2.47kb -> 2.10kb (14.96%)
/extensions/jake/images/cowboy_hat.png -- 43.85kb -> 41.67kb (4.98%)
2018-11-06 20:46:03 +00:00
Alex Ross
18177c58cc
Add a tooltip to scripts in NPM script view ( #61596 )
...
Fixes #55218
2018-10-29 14:15:55 +01:00
Johannes Rieken
b343fcf6ab
declare proposed api usage only where actually being used
2018-10-24 12:27:59 +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
Joao Moreno
707787c5b8
update yarn.lock files to use integrity
2018-09-30 16:34:43 +02:00
Erich Gamma
cc0b42784c
More robust handling of invalid script values
2018-09-18 08:29:12 +02:00
Erich Gamma
295f04ae24
Fix #57897 ignore object valued scripts
2018-09-17 20:54:44 +02:00
Erich Gamma
e93bb0c372
fix #57897 tasks cache not refreshed when workspace folder change
2018-09-17 19:53:20 +02: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
8330a69571
fixing web packing
2018-09-13 12:59:24 +02:00
Johannes Rieken
f1962fe5ad
webpack - use mainFields: ['module', 'main']
for everyone
2018-09-13 11:48:06 +02:00
Erich Gamma
3fd4c7f4bd
Use webpack for all big extensions #57680
2018-09-12 20:31:47 +02:00
Johannes Rieken
c2c5819fc8
adopt vscode-nls 4.0.0
2018-09-06 14:44:33 +02:00
Martin Aeschlimann
9a03a86c0a
improve npm.fetchOnlinePackageInfo handling
2018-08-16 16:39:07 +02:00
Benjamin Pasero
920defc6a6
debt - update extensions node dependency to 8.x
2018-08-14 10:44:56 +02:00
Rob Lourens
a0764210a8
#55478 - switch all builtin settings to 'markdownDescription' instead of 'description' where needed
2018-08-08 17:01:37 -07:00
atompkins
30254a8e25
Use npm view to populate info box
2018-08-08 15:43:49 -07: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
Erich Gamma
812d082e90
Fixing Cannot debug npm script using Yarn #55103
2018-07-28 18:41:09 +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
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
Erich Gamma
1616ea1193
Disable npm code lens by default
2018-07-24 12:18:13 +02:00
Erich Gamma
f6064affd1
update to tasks 2.0
2018-07-24 08:30:52 +02:00
Erich Gamma
1c14e736d2
Add missing nls key in package.json, fixing #54714
2018-07-23 09:34:03 +02:00
Erich Gamma
8d964cbd59
Added setting to control visibility of code lens
2018-07-20 09:43:49 +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
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
Greg Van Liew
c150d0d42d
Edit pass on new built-in extension comments ( #54277 )
2018-07-13 15:28:27 -07:00
Ramya Achutha Rao
f89c16c04c
Standardize readme across built-in extensions #54098
2018-07-11 16:38:32 -07:00
Erich Gamma
7452fe03a0
Generalize the debug argument matching
2018-07-03 16:56:27 +02:00
Dirk Baeumer
21991b4912
Move to latest vscode-nls for corrupted cache support
2018-07-03 16:12:52 +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
09e8559257
Don´t show npm explorer commands in the command palette fixes #51196
2018-06-13 12:03:13 +02:00
Dirk Baeumer
e5c3c10853
Remove old proposed task API
2018-06-07 10:05:47 +02:00
Martin Aeschlimann
eb2b51aeb9
associate npmignore with ignore language (for #51026 )
2018-06-04 11:42:05 +02:00
Erich Gamma
b48a89d461
remove commented out lines
2018-06-04 09:42:47 +02:00
Erich Gamma
a10a7633d1
use unused span for unused locals/parameters
2018-06-04 09:11:17 +02:00
Erich Gamma
f7f2911e2b
Reapply fix for #50790
2018-06-01 09:35:42 +02:00
Erich Gamma
6a62a945ea
Fix for #50792 npm exclude doesn´t work for folder names
2018-05-30 17:43:58 +02:00
Erich Gamma
8b9b0d3582
Fix for #50792 : empty pre post scripts not rendered properly
2018-05-30 17:31:02 +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
Callum Isitt
6d25151513
Add link to package homepage in package.json files
...
Displayed at the bottom of the box that appears when hovering over a package name
2018-05-17 15:15:40 +01:00
Erich Gamma
a323b399d6
dynamically refresh the view when the npm.exclude setting changes
2018-05-17 10:46:16 +02:00
Erich Gamma
c0126de1f3
Render pre/post scripts different from regular scripts
2018-05-15 16:22:40 +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
Erich Gamma
a411c2f4e6
Fix for #49237 filter out duplicate task entries
2018-05-08 12:42:28 +02:00
Erich Gamma
6025f1f45d
Fix for #49348 don´t show install tasks in script explorer
2018-05-07 16:04:47 +02:00
Erich Gamma
d92f8aed6a
Remove console.log
2018-05-07 16:04:47 +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
fece020cc2
Added inline action to run a script
2018-05-04 14:52:57 +02:00