Skip to content

General improvements: VSIX tooling files, kernelspec copy pattern, dead gulp task, npm ls health #643

Backlog

Description

@tkislan

Four small, independent cleanups found while working on #641, ordered by impact. Each one can go in its own PR. Only the first changes what ships to users.

1. The release VSIX ships repository tooling files

vsce ls --no-dependencies on a clean git archive of the tree lists 85 files. 17 of them are development files that users never need:

.nsprc, osv-scanner.toml, renovate.json, cspell.json, oxlint.config.mts, tailwind.config.js, postcss.config.js, AGENTS.md, CLAUDE.md, .qlty/qlty.toml, .cursor/rules/agents.mdc and the six specs/*.md files.

Local builds are worse, because of the !**/*nls.*.json line in .vscodeignore:

  • vsce keeps any file that matches a ! line, whatever order the lines are in (collectFiles in node_modules/@vscode/vsce/out/package.js), so no later exclude can override it.
  • After npm run setup:e2e, npm run package therefore packs every *nls.*.json under .test-extensions/ and test-resources/. A local VSIX had 4,141 files, about 1,300 of them stray nls files from the downloaded VS Code and the Python extensions.
  • CI is not affected: cd.yml packages from a fresh checkout, and e2e.yml packages before it downloads anything.
  • The line came from upstream for localized package.nls.<lang>.json files (039cf29), which this fork removed (9ec8633). The only nls file left, package.nls.json, matches no ignore rule, so it doesn't need the negation.

Suggested change, checked with vsce ls --no-dependencies on a clean tree with a fake .test-extensions/*/package.nls.de.json and test-resources/**/nls.metadata.json added. The list goes from 87 to 68 files, removing exactly the 17 tooling files and the two fake nls files. package.json, package.nls.json, README.md, LICENSE, icon.png, assets/*.png and dist/** stay.

--- a/.vscodeignore
+++ b/.vscodeignore
@@
 test-results*
 *.zip
-!**/*nls.*.json
 *.d.ts
 debugpy_logging.cmd
+.nsprc
+osv-scanner.toml
+renovate.json
+cspell.json
+oxlint.config.mts
+tailwind.config.js
+postcss.config.js
+AGENTS.md
+CLAUDE.md
+specs/**
+.qlty/**
+.cursor/**
+.claude/**

SECURITY.md and deepnote-vscode-cover-image.png also ship. Nothing in the repo references the cover image. They are left out of the diff because removing them is a judgment call.

2. Kernelspec copy uses [^json] as if it meant "not .json"

src/kernels/jupyter/session/jupyterKernelService.node.ts:185, inherited from upstream:

// Copy any other files over from the original directory (images most likely)
...
const otherFiles = await this.fs.searchLocal('*.*[^json]', originalSpecDir);

[^json] is a character class: it matches one last character that is not j, s, o or n. So the copy skips every file whose name ends in one of those letters, not just .json files. It also skips files without a dot. I ran it against a kernelspec directory on glob 13.0.7, 14.0.3 and 14.0.6, with the same result on all three:

File Copied
logo-32x32.png, logo-64x64.png, logo-svg.svg yes
a.json.bak, b.jsonx, c.ipynb, d.txt yes
kernel.json no (intended; it's written separately)
kernel.js no (frontend customization some kernelspecs ship)
README no
any other name ending in j, s, o or n, e.g. *.css no (same rule, not run)

Reach is limited. It runs only when a local kernel is registered through a Jupyter server with raw ZMQ support off (JupyterKernelService.registerKernel). .deepnote notebooks never get there. The unit test stubs searchLocal to return [] (jupyterKernelService.unit.test.ts:434), so nothing exercises the pattern.

Suggested change (not run):

-            const otherFiles = await this.fs.searchLocal('*.*[^json]', originalSpecDir);
+            const otherFiles = (await this.fs.searchLocal('*', originalSpecDir)).filter(
+                (f) => path.basename(f) !== 'kernel.json'
+            );

A test should run it against a real temp directory, not a stubbed searchLocal.

3. validateTranslationFiles gulp task is dead

gulpfile.js:38-83 validates package.nls.*.json against a JSON schema.

  • No npm script or workflow runs the task.
  • Its pattern matches nothing: the repo has only package.nls.json. The localized files it was written for were removed upstream (9ec8633).
  • { sync: true } is not a glob option.
  • It is the only user of the jsonschema devDependency.

Suggested change: delete the task, its import { Validator } from 'jsonschema', and the jsonschema devDependency. If the check is wanted instead, package.nls.json passes the task's schema today (0 errors). In that case, change the pattern to package.nls*.json and add the task to a CI job.

4. npm ls --all exits 1 right after npm ci

Under the pinned Node 22.21.1 / npm 10.9.4, npm ls --all on a fresh install prints:

npm error invalid: uuid@11.1.1 node_modules/istanbul-lib-processinfo/node_modules/uuid
npm error invalid: glob@14.0.6 node_modules/glob

Nothing in CI runs npm ls, so the cost is only that people and agents can't use it to check tree health. I tripped over it during #641. Options: document it in CONTRIBUTING.md/AGENTS.md, or look into a scoped form of the uuid@8 override. No fix has been verified yet. Note that three @nteract/* packages also declare uuid ^8 and may be bundled, so check the shipped bundle before changing that override.

Activity

  1. added
    enhancement
    on Dec 1, 2026
  2. changed the title [-]General improvements: VSIX tooling files, kernelspec copy pattern, dead gulp task, npm ls health[/-] [+]General improvements: packaging, build and dependency-override cleanups[/+] on Dec 1, 2026
  3. changed the title [-]General improvements: packaging, build and dependency-override cleanups[/-] [+]General improvements: VSIX tooling files, kernelspec copy pattern, dead gulp task, npm ls health[/+] on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions