Skip to content

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Dec 28, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 28, 2025 08:09
@bpasero bpasero self-assigned this Dec 28, 2025
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 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.ts and workbench.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.ts functions into nls.ts and 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.jsworkbench.web.main.internal.js for embedder compatibility
.vscode/settings.json Added workbench.web.main.ts to TypeScript auto-import exclusions

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.

2 participants