Skip to content

Work towards getting isolated built-in extension compiles#271171

Merged
mjbvz merged 6 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/popular-pigeon
Oct 13, 2025
Merged

Work towards getting isolated built-in extension compiles#271171
mjbvz merged 6 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/popular-pigeon

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Oct 13, 2025

For #271167

This makes it so our built-in extensions can mostly be built using tsc on the command line:

cd extensions/markdown-language-features
npx tsc -p tsconfig.json -noEmit

Previously the extensions were picking up a lot of typing info from the root node_modules which meant they weren't truly independent

I had to add a few skipLibChecks for tricky issues with published @types. Will revisit these later

For microsoft#271167

This makes it so our built-in extensions can mostly be built using `tsc` on the command line. Previously the extensions were picking up a lot of typing info from the root `node_modules` that meant they weren't truly independent
Copilot AI review requested due to automatic review settings October 13, 2025 18:05
@mjbvz mjbvz enabled auto-merge October 13, 2025 18:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds typeRoots configurations to built-in extension TypeScript configurations to enable isolated compilation with tsc on the command line. The primary goal is to make extensions independent of typing information from the root node_modules directory.

  • Added typeRoots: ["./node_modules/@types"] to extension tsconfig.json files
  • Updated several @types/mocha dependencies from version 9.x to 10.x
  • Added skipLibCheck: true for extensions with problematic published @types packages

Reviewed Changes

Copilot reviewed 52 out of 59 changed files in this pull request and generated 1 comment.

File Description
extensions/*/tsconfig.json Added typeRoots configuration pointing to local node_modules/@types
extensions/*/package.json Updated @types/mocha to version 10.x and added missing @types/node dependencies
extensions/terminal-suggest/tsconfig.json Duplicate typeRoots entries added
extensions/notebook-renderers/src/htmlHelper.ts Added type annotations and cast for trustedTypes
Files not reviewed (7)
  • extensions/ipynb/package-lock.json: Language not supported
  • extensions/markdown-language-features/package-lock.json: Language not supported
  • extensions/mermaid-chat-features/package-lock.json: Language not supported
  • extensions/notebook-renderers/package-lock.json: Language not supported
  • extensions/search-result/package-lock.json: Language not supported
  • extensions/terminal-suggest/package-lock.json: Language not supported
  • extensions/vscode-api-tests/package-lock.json: Language not supported

@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering bot commented Oct 13, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@TylerLeonhardt

Matched files:

  • extensions/github-authentication/package-lock.json
  • extensions/github-authentication/package.json

roblourens
roblourens previously approved these changes Oct 13, 2025
dmitrivMS
dmitrivMS previously approved these changes Oct 13, 2025
@mjbvz mjbvz dismissed stale reviews from dmitrivMS and roblourens via a801b6a October 13, 2025 21:22
@mjbvz mjbvz closed this Oct 13, 2025
auto-merge was automatically disabled October 13, 2025 22:37

Pull request was closed

@mjbvz mjbvz reopened this Oct 13, 2025
@mjbvz mjbvz merged commit ae7e096 into microsoft:main Oct 13, 2025
22 checks passed
pwang347 pushed a commit that referenced this pull request Oct 14, 2025
Work towards getting isolated built-in extension compiles
pwang347 pushed a commit that referenced this pull request Oct 14, 2025
Work towards getting isolated built-in extension compiles
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants