Skip to content

Guard additional LSP methods for non-file URIs - #4819

Merged
pkwarren merged 1 commit into
mainfrom
pkw/lsp-ignore-non-file-uris
Dec 2, 2026
Merged

pkwarren merged 1 commit into
mainfrom
pkw/lsp-ignore-non-file-uris

Conversation

@pkwarren

@pkwarren pkwarren commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

In #4817, DidOpen was updated to ignore non-file URIs. Extend this fix to also short circuit in DidChange, DidSave, and Formatting. Both DidChange / DidSave would log an error but Formatting would return an error to the client.

Additionally, remove some stale comments related to the old compiler. The LSP and formatter have moved to the new compiler a while back and we missed a few comments.

In #4817, `DidOpen` was updated to ignore non-file URIs. Extend this fix
to also short circuit in `DidChange`, `DidSave`, and `Formatting`. Both
`DidChange`/`DidSave` would log but `Formatting` would return an error
to the client.

Additionally, remove some stale comments related to the old compiler.
The LSP and formatter have moved to the new compiler a while back and we
missed a few comments.
@pkwarren
pkwarren requested a review from emcfarlane December 2, 2026 16:50
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 2, 2026, 5:07 PM

@pkwarren
pkwarren merged commit 0dc5ad2 into main Dec 2, 2026
13 checks passed
@pkwarren
pkwarren deleted the pkw/lsp-ignore-non-file-uris branch December 2, 2026 17:18
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