Republish LSP server before F5 dev-mode launches#45
Open
clrudolphi wants to merge 1 commit into
Open
Conversation
F5 previously reused whatever was last manually published to bin/Release/.../publish, silently masking source changes. Add a prelaunch task that republishes the win-x64 server only when source under src/LSP is newer than the last dev publish, keeping the common no-change case fast. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
bin/Release/net10.0/win-x64/publish/, silently masking source changes and causing phantom "regressions" (see VS Code dev host (F5) can silently run a stale published LSP server #44).scripts/dev-publish-server.mjs, a freshness-check script that republishes the win-x64 server only when source undersrc/LSPis newer than the last dev publish..vscode/tasks.jsonas aRun Extension: prelaunchcompound task (npm: build:server:devthennpm: compile) and sets it as thepreLaunchTaskin.vscode/launch.json.Test plan
node scripts/dev-publish-server.mjswith no prior publish — republished successfully.Hosting/Program.cs— script detected staleness and republished; subsequent run skipped again.Fixes #44
🤖 Generated with Claude Code