Skip to content

Add LSP workaround for filepaths with @ symbols#4325

Merged
stefanvanburen merged 3 commits intomainfrom
svanburen/uri
Feb 13, 2026
Merged

Add LSP workaround for filepaths with @ symbols#4325
stefanvanburen merged 3 commits intomainfrom
svanburen/uri

Conversation

@stefanvanburen
Copy link
Member

It appears that vscode has it's own URI implementation that will escape @ characters. By default, our go.lsp.dev package follows Go's semantics and does not escape these characters. (I plan to report this inconsistency upstream to go.lsp.dev, but don't expect a quick response.)

Fixes bufbuild/vscode-buf#569.

It appears that vscode has it's own URI implementation that will [escape
`@` characters][1]. By default, our go.lsp.dev package follows Go's
semantics and does not escape these characters. (I plan to report this
inconsistency upstream to go.lsp.dev, but don't expect a quick response.)

Fixes bufbuild/vscode-buf#569.

[1]: https://github.com/microsoft/vscode-uri/blob/65786c7aef8aa1d142fedfde76073cc3549736d2/src/uri.ts#L462
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 12, 2026, 3:23 PM

@stefanvanburen
Copy link
Member Author

Using this buf locally, I can get hover info / semantic tokens / all that jazz in VS Code:

image

@stefanvanburen stefanvanburen merged commit 0257db4 into main Feb 13, 2026
10 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/uri branch February 13, 2026 13:32
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.

Intellisense not working when project folder path contains "@"

2 participants