Commit Graph
238 Commits
Author SHA1 Message Date
52e8e9cfd6 Add package.json catalog support for npm completions and hover (#307989)
Extend the npm extension to recognize the `catalog` section in
package.json, enabling IntelliSense completions, version suggestions,
and hover information for packages listed under the catalog key.
This supports the catalog feature used by pnpm, bun, and yarn for
centralizing dependency versions in monorepos.

Fixes #294609

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2026-07-29 01:23:55 +00:00
dileepyavanandGitHub ca425775e4 Revert "Optimize shared built-in extension dependencies (#318045)" (#319774)
This reverts commit 26e580781a.
2026-06-03 17:21:27 +00:00
Dmitriy VasyuraandGitHub 26e580781a Optimize shared built-in extension dependencies (#318045) 2026-06-03 08:49:40 +00:00
Martin AeschlimannandGitHub a32f3aed02 revert changes to npmView (#319352) 2026-06-01 10:23:22 -07:00
RoboandGitHub 8748be1f1a feat: update to Electron v42 (#316661)
* feat: update to Electron v42

* chore: drop support for arm 32-bit server

* chore: update types/node to v24.x

* chore: temporarily lock the target version for build/

* chore: update v8-source-location.patch

* chore: fix clippy

* chore: cleanup armhf server ci config

* fix: broken lock file

* fix: c++ version requirement for sysroot builds

* fix: msvc compilation of native modules

* fix: handle rejections for fire-and-forget loadurl

* fix: windows build

* ci: fix teardown of daemon process on windows

```
2026-05-15T20:55:09.7717127Z Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76
```

* chore: update deb and rpm dependencies

* chore: update version info

* spec: improve reliablity of offscreencanvas tests

* spec: retry EPERM failures on teardown

* chore: update x86_64 rpm deps

* ci: exclude server binskim for armhf

* temp: bump distro

* test: ignore deprecation warnings treated as errors

* chore: update lockfile

* fix: externalize electron from auth extension bundles

 Error: Cannot find module 'c:\Users\cloudtest\AppData\Local\Temp\vscode-sanityQvCaze\vscode-server-win32-x64-web\extensions\github-authentication\dist\install.js'
     at Module._resolveFilename (node:internal/modules/cjs/loader:1476:15)
     at wrapResolveFilename (node:internal/modules/cjs/loader:1049:27)
     at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1073:10)
     at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1094:12)
     at Module._load (node:internal/modules/cjs/loader:1262:25)
     at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
     at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
     at node:internal/main/run_main_module:33:47 {
   code: 'MODULE_NOT_FOUND',
   requireStack: []
 }

 Node.js v24.15.0

* test: make wsl sanity tests reliable

* chore: bump electron@42.1.0

* temp: bump distro

* chore: bump electron@42.2.0

* chore: bump distro

* chore: update debian dependencies

* Revert "test: make wsl sanity tests reliable"

This reverts commit b3f2b63e83.

* test: do not fail for deprecation warnings

* chore: patch node24 server binary for wsl1

* chore: address review feedback

* chore: revert global navigation error handler in browserview

* chore: bump distro
2026-05-27 14:57:41 +02:00
4c482dcb91 make dependency hovers in package.json faster (#310140)
* make dependency hovers in package.json faster

* Update extensions/npm/src/features/packageJSONContribution.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-15 09:11:17 -07:00
e42ae9ae25 Additionaly to newest published version of package also show currently installed version (#308569)
* Additionaly to newest published version of package also show currently installed version

* refactor: streamline npm command execution and improve error handling

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2026-04-15 10:09:06 +00:00
Dirk BäumerandGitHub 737fcd3d3d Revert "Bump minimatch from 5.1.6 to 10.2.1 in /extensions/npm" (#296464)
Revert "Bump minimatch from 5.1.6 to 10.2.1 in /extensions/npm (#296143)"

This reverts commit bf25539d57.
2026-02-20 08:57:41 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bf25539d57 Bump minimatch from 5.1.6 to 10.2.1 in /extensions/npm (#296143)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 5.1.6 to 10.2.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v5.1.6...v10.2.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.2.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-19 12:16:57 -06:00
Matt Bierner 2e81391ad3 Adopt esbuild instead of webpack for a few more extensions
Adopting for configuration-editing, emmet, grunt, jake, and npm
2026-02-12 12:31:13 -08:00
Matt Bierner f4fe2163a9 Remove any casts in some built-in extensions
For #269213
2025-10-06 10:08:20 -07:00
Matt Bierner 360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Matt Bierner f7912a436b Remove bower package intellisense from core
Fixes ##26149
2025-08-13 10:49:25 -07:00
Connor PeetandGitHub 0f49f0e649 npm: fix run button in scripts tree not updating when npm.scriptRunner is changed (#242098) 2025-02-26 19:22:30 +01:00
xymopen_OfficialandGitHub 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 LourensandGitHub 0264c2afc0 Revert "Add node as npm script runner (#236967)" (#240413)
This reverts commit 6a5991cfb6.
2025-02-11 20:17:30 +01:00
xymopen_OfficialandGitHub 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
Michael HandGitHub 1e3788f49f bun.lock 2024-12-13 13:29:39 +11:00
Johannes e6f315d2fc eng - use esModuleInterop for extensions 2024-10-01 21:57:30 +02:00
Matt BiernerandGitHub 51fa4d0172 Fix more type assertions (#230156)
* Fix more type assertions

For #211878

* Fix type error
2024-09-30 14:17:06 -07:00
Alex RossandGitHub 789d5fe04e Use shell: true only on Windows (#224597) 2024-08-05 01:46:45 -07:00
Alex RossandGitHub 331b772a5e Add shell: true to execFile for npm hover (#224583)
Fixes #224510
2024-08-02 16:59:39 +02:00
Martin AeschlimannandGitHub 027fce3efd Polish the code that sets env in packageJSONContribution.ts (#213306) 2024-05-23 11:45:56 +02:00
FrankandGitHub 59d84c5c8c disable corepack auto pin feature when executing npm view (#210601) 2024-04-18 01:28:08 +00:00
Megan RoggeandGitHub ba5f685b65 Merge pull request #124803 from nrayburn-tech/npm-activation
npm extension - check for root package.json before findFiles
2024-01-22 15:04:27 -08: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
Megan RoggeandGitHub 8af169e554 Merge pull request #197668 from microsoft/merogge/quick-fix-api
`addNewLine` -> `shouldExecute`, expose this in quick fix API
2023-11-21 10:23:27 -06:00
Matt BiernerandGitHub 4f866533b4 Add missing disposable registration (#198473) 2023-11-16 14:18:43 -08:00
Marvin A. Ruder 4645305f14 Add Bun as package manager to npm extension
* Auto-detect Bun by looking for `bun.lockb` lockfile
* Extend `npm.packageManager` setting
* Update documentation

Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
2023-11-11 16:37:29 +00:00
meganrogge 97eccab2e0 update reference in npm 2023-11-07 11:16:22 -08:00
Martin AeschlimannandGitHub 8284903c26 use findup v5 (no esm) (#193000)
* use findup v5 (no esm)

* fix import
2023-09-13 15:46:29 +02:00
Martin AeschlimannandChristof Marti 21276bad51 fix npm view exploits 2023-09-12 20:11:45 +02:00
Martin AeschlimannandGitHub 206341dd9e npm extension: update dependencies (#192870) 2023-09-12 09:48:14 -07:00
Daniel Imms 5edcca3b38 Update terminal quick fix proposal
Part of #162950
2023-08-09 07:41:00 -07:00
weartist 669e5c578c adjust to correct link 2023-06-01 09:40:34 +08:00
Christof MartiandGitHub 7a4092f1b0 Package hover: Show when last published (#177634) 2023-03-20 09:41:52 +01:00
susiwen8andGitHub 811324be93 fix: detectedPackageManagerNames should be string (#175610) 2023-03-15 14:53:52 +00:00
Matt BiernerandGitHub c390a331c5 Switch to standard imports (#169451) 2022-12-17 00:22:53 +01:00
3e9bfdddc0 quick fix API polish (#168688)
* fix #167649

* Update src/vs/platform/terminal/common/xterm/terminalQuickFix.ts

* fix #167652

* add builtin everywhere for consistency

* fix  #167621 and fix #167646

* get rid of type in api

* fix  #167584

* fix #167587

* fix #167587

* fix #167590 and fix #167557

* Revert "fix #167652"

This reverts commit cf4cc72790.

* Update src/vs/workbench/contrib/terminal/common/terminal.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* use const enum + more

* use classes

* update npm package.json

* add example for outputMatcher

* improve description

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2022-12-13 19:32:54 +01:00
Connor PeetandGitHub dc83ca1951 npm: adopt terminal quick fix api (#167664)
Fixes https://github.com/microsoft/vscode/issues/167588
2022-12-02 08:20:53 -08:00
Matt BiernerandGitHub 952bbb6720 Adopt l10n for npm package (#165527)
For #164438
2022-11-04 13:56:39 -07:00
David DossettandGitHub 2da60fd58b Update quick pick placeholders and/or remove titles (#165267) 2022-11-02 15:43:18 -07:00
Martin AeschlimannandGitHub c1dd46c2f4 [npm] package.json latest vue version incorrect (#159315)
[npm] package.json latest vue version incorrect. FIxes #158850
2022-08-29 15:49:48 +02:00
Babak K. ShandizandGitHub 2150470804 🎁 Add option to disable script hovers in package.json files (#156752)
* ⚙️ Define `npm.scriptHover` configuration parameter

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🌐 Add localized description for `npm.scriptHover` config parameter

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🎁 Respect `npm.scriptHover` config parameter in `NpmScriptHoverProvider`

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2022-08-01 09:43:31 -07:00
Connor Peet d88ab38f1b npm: remove icon from localization
For #153743
2022-07-06 10:57:16 -07:00
Megan RoggeandGitHub cf94d8370d use const instead of literal (#151742)
use const
2022-06-10 13:56:43 +00:00
Johannes ed9ed45794 Merge branch 'main' into joh/voluminous-lobster 2022-06-10 09:07:30 +02:00
Megan RoggeandGitHub 4222eb73aa allow excluding npm install script from the npm scripts view (#151647)
fix #149924
2022-06-09 17:15:43 -07:00
Johannes 3622010b64 Merge branch 'main' into joh/voluminous-lobster 2022-06-09 09:08:20 +02:00