-
Notifications
You must be signed in to change notification settings - Fork 37.2k
debt - remove AMD support of VSCode for web #285230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 removes AMD (Asynchronous Module Definition) loader support for VS Code web, simplifying the build and module loading architecture by consolidating to ESM-only.
Key Changes
- Consolidated
workbench.web.main.internal.tsandworkbench.web.main.ts- the internal file now simply re-exports from the main file - Removed AMD bridge code that loaded ESM modules via a loader plugin
- Inlined
nls.messages.tsfunctions intonls.tsand removed the separate module
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/workbench.web.main.ts |
Removed AMD bridge code (~100 lines); added all imports, service registrations, and exports previously in .internal.ts |
src/vs/workbench/workbench.web.main.internal.ts |
Simplified to re-export everything from workbench.web.main.js with backward compatibility notice |
src/vs/nls.ts |
Inlined getNLSMessages() and getNLSLanguage() functions from deleted nls.messages.ts |
src/vs/nls.messages.ts |
Deleted - no longer needed for AMD compatibility layer |
src/vs/code/browser/workbench/workbench.ts |
Updated import path from .internal.js to .web.main.js |
src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.ts |
Added optional chaining for product.defaultChatAgent (defensive programming fix) |
eslint.config.js |
Removed workbench.web.main.internal.ts from exclusions; removed nls.messages.ts from glob pattern; simplified import restrictions for internal file |
build/lib/optimize.ts |
Removed special banner exclusion for workbench.web.main that was only needed for AMD bridge |
build/gulpfile.vscode.web.ts |
Removed AMD loader from build; removed internal file from entry points; updated file copying logic to rename workbench.web.main.js → workbench.web.main.internal.js for embedder compatibility |
.vscode/settings.json |
Added workbench.web.main.ts to TypeScript auto-import exclusions |
This comment was marked as spam.
This comment was marked as spam.
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @lszomoruMatched files:
|
Refs https://github.com/microsoft/vscode-dev/issues/1245