Skip to content

Adds hot reload launch config#277123

Merged
hediet merged 13 commits intomainfrom
hediet/b/sour-lark
Nov 21, 2025
Merged

Adds hot reload launch config#277123
hediet merged 13 commits intomainfrom
hediet/b/sour-lark

Conversation

@hediet
Copy link
Copy Markdown
Member

@hediet hediet commented Nov 13, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 13, 2025 12:58
@hediet hediet self-assigned this Nov 13, 2025
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 a hot reload development configuration that enables faster iteration during VS Code workbench development by loading the workbench from a Vite dev server instead of compiled JavaScript files.

Key Changes:

  • Introduces DEV_WINDOW_SRC environment variable to specify an alternative URL for loading the workbench window
  • Adds conditional logic to load TypeScript sources directly when in hot reload mode, bypassing CSS import maps and compiled JS
  • Creates new launch configuration "VS Code (Hot Reload)" with supporting HTML and TypeScript entry points

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/vs/platform/windows/electron-main/windowImpl.ts Adds support for loading window from DEV_WINDOW_SRC environment variable instead of default workbench HTML
src/vs/platform/windows/electron-main/types.d.ts Declares TypeScript type definition for the new DEV_WINDOW_SRC environment variable
src/vs/code/electron-browser/workbench/workbench.ts Modifies workbench loading to conditionally skip CSS import maps and load TypeScript sources directly when DEV_WINDOW_SRC is set
src/vs/base/parts/ipc/electron-main/ipcMain.ts Adds IPC validation bypass for URLs matching DEV_WINDOW_SRC to allow communication from the Vite dev server
build/monaco-editor-playground/workbench-vite-electron.html New HTML entry point for loading workbench through Vite dev server
build/monaco-editor-playground/workbench-electron.ts New TypeScript entry point that imports setup and workbench modules for hot reload
.vscode/launch.json Renames and updates launch configuration from "Dev Debug" to "Hot Reload", adds DEV_WINDOW_SRC environment variable and preLaunchTask

@hediet hediet marked this pull request as ready for review November 14, 2025 09:40
@hediet hediet requested a review from bpasero November 14, 2025 09:40
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering bot commented Nov 14, 2025

📬 CODENOTIFY

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

@deepak1556

Matched files:

  • src/vs/code/electron-browser/workbench/workbench-dev.html
  • src/vs/code/electron-browser/workbench/workbench.ts

@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 14, 2025
@hediet
Copy link
Copy Markdown
Member Author

hediet commented Nov 17, 2025

@copilot can you implement all the feedback from ben?

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 17, 2025

@hediet I've opened a new pull request, #277883, to work on those changes. Once the pull request is ready, I'll request review from you.

@hediet hediet requested a review from bpasero November 18, 2025 16:16
@bpasero
Copy link
Copy Markdown
Member

bpasero commented Nov 21, 2025

@hediet carved out some time to review, pushed some 💄 , feel free to merge.

@hediet hediet merged commit a335d51 into main Nov 21, 2025
28 checks passed
@hediet hediet deleted the hediet/b/sour-lark branch November 21, 2025 10:18
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 6, 2026
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.

5 participants