Repository navigation
Fix blank page: set VSCODE_DEV=1 for dev workbench template - #4
Merged
Merged
Conversation
npm run compile does not produce bundled workbench.css or nls.messages.js (those require the full packaging pipeline). Setting VSCODE_DEV=1 makes the server use workbench-dev.html which loads CSS dynamically via import maps, matching the compile-only build output. Co-Authored-By: Danial Piterson <danial.samiei@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix blank page: set VSCODE_DEV=1 for dev workbench template
Summary
The site at https://ide.orcest.ai/ renders a blank page because the server expects bundled assets (
workbench.css,nls.messages.js) that don't exist. These are only produced by the full packaging pipeline (gulp vscode-web-min), but the Dockerfile usesnpm run compilewhich only compiles TypeScript toout/.Setting
VSCODE_DEV=1makesisBuiltreturnfalse, which switches the server to useworkbench-dev.html— a template that loads CSS dynamically via import maps instead of requiring a pre-bundled CSS file.Review & Testing Checklist for Human
VSCODE_DEV=1in production. This flag controlsisBuiltwhich is checked in many places beyond just the HTML template selection — it affects static file caching (ETAG vs immutable), extension loading,product.overrides.jsonloading, settings sync, and likely other behaviors. Grep forisBuiltandVSCODE_DEVacross the codebase to assess whether any of these side effects are unacceptable for your deployment.ICSSDevelopmentServicewhich runs ripgrep at server startup to discover all.cssfiles. Verify this doesn't cause excessive startup latency or fail silently in the Docker container.VSCODE_DEV=1.Notes