Skip to content

Conversation

@osortega
Copy link
Contributor

@osortega osortega commented Jan 7, 2026

Reverts #286421

Did a revert so that it's not included in this week's release, we want to give partners time to validate before removing AMD

Copilot AI review requested due to automatic review settings January 7, 2026 19:31
Copy link
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 re-applies changes to remove AMD (Asynchronous Module Definition) support from VSCode for web, reverting a previous revert. The changes streamline the web workbench entry point architecture by removing the AMD-to-ESM bridge and consolidating module loading.

Key changes:

  • Removed AMD bridge code and converted workbench.web.main.ts to use direct ESM imports and registrations
  • Restructured workbench.web.main.internal.ts to import from workbench.web.main.ts and maintain public API exports
  • Simplified NLS (localization) implementation by consolidating functions directly in nls.ts and removing nls.messages.ts
  • Updated build configuration, ESLint rules, and CI/CD pipelines to reflect the new entry point structure

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 Replaced AMD bridge wrapper with direct ESM imports, service registrations, and workbench contributions
src/vs/workbench/workbench.web.main.internal.ts Simplified to import workbench.web.main.js and re-export public API for web embedders
src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.ts Added optional chaining to safely access product.defaultChatAgent.completionsEnablementSetting
src/vs/nls.ts Moved getNLSMessages and getNLSLanguage implementations directly into this file
src/vs/nls.messages.ts Removed file (functionality moved to nls.ts)
eslint.config.js Removed workbench.web.main.ts and workbench.web.main.internal.ts from no-standalone-editor exclusions; updated import pattern to workbench.web.main.js; removed loader.d.ts and nls.messages.ts from code-import-patterns target
build/lib/optimize.ts Removed special banner handling for workbench.web.main entry point
build/gulpfile.vscode.web.ts Removed VinylFile import and AMD bridge-related file transformation logic
build/buildfile.ts Changed workbenchWeb entry point from workbench.web.main to workbench.web.main.internal
build/azure-pipelines/web/product-build-web.yml Removed separate sourcemap upload step for workbench.web.main.js.map; consolidated to single upload for workbench.web.main.internal.js.map

@osortega osortega marked this pull request as ready for review January 7, 2026 19:47
@vs-code-engineering
Copy link

📬 CODENOTIFY

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

@lszomoru

Matched files:

  • build/azure-pipelines/web/product-build-web.yml

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.ts

@osortega osortega merged commit e166b7b into main Jan 7, 2026
27 of 28 checks passed
@osortega osortega deleted the revert-286421-revert-285230-ben/loud-meadowlark branch January 7, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants