You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix PWA manifest start URL for server base paths - #330360
This updates WebClientServer to serve the server PWA manifest with a start_url derived from the effective base path, including X-Forwarded-Prefix. The dynamic response keeps the remaining manifest fields unchanged and uses Cache-Control: no-store with Vary: X-Forwarded-Prefix.
Testing
npm run test-node -- --run src/vs/server/test/node/webClientServerManifest.test.ts (7 passing)
Server Node.js tests under src/vs/server/test/node (48 passing)
npm run transpile-client
Client typecheck and targeted ESLint/formatter checks
The remaining Component Fixtures failure is in Determine base SHA at git merge-base, after the Playwright tests and screenshot capture passed. This branch still has the depth-50 workflow; main already has 494b970d to handle this case. Rerunning the existing job uses the old workflow. Martin Aeschlimann (@aeschli), could you merge current main into this branch to pick up that fix and trigger fresh CI?
The reason will be displayed to describe this comment to others. Learn more.
compile hygeine failures
Warning: [eslint ] /mnt/vss/_work/vscode/vscode/src/vs/server/test/node/webClientServerManifest.test.ts: line 110, col 35, Warning - Use dot notation instead of bracket notation for property 'Vary'. (local/code-no-bracket-notation-for-identifiers)
Warning: [eslint ] /mnt/vss/_work/vscode/vscode/src/vs/server/test/node/webClientServerManifest.test.ts: line 126, col 45, Warning - Use dot notation instead of bracket notation for property 'Etag'. (local/code-no-bracket-notation-for-identifiers)
Michael Lively (@Yoyokrazy), could you take another look at 6e01765? The three Etag/Vary accesses now use dot notation, and the targeted ESLint check passed.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
With --server-base-path=/code, the forced trailing slash sets the manifest’s default scope to /code/, excluding the /code token-removal redirect from the installed app’s scope.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Keep the token-removal redirect within the app scope
src/vs/server/node/webClientServer.ts:230
With --server-base-path=/code, forcing a trailing slash makes the manifest's default scope /code/, which excludes the /code URL used by the token-removal redirect. Normalize start_url without adding the slash (for example, join with '.') so that URL remains in the installed app's scope, and update the new test expectations.
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
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.
Fixes #209601
This updates
WebClientServerto serve the server PWA manifest with astart_urlderived from the effective base path, includingX-Forwarded-Prefix. The dynamic response keeps the remaining manifest fields unchanged and usesCache-Control: no-storewithVary: X-Forwarded-Prefix.Testing
npm run test-node -- --run src/vs/server/test/node/webClientServerManifest.test.ts(7 passing)src/vs/server/test/node(48 passing)npm run transpile-client