Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lsp): normalize "deno:" urls statelessly #20867

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

nayeemrmn
Copy link
Collaborator

@nayeemrmn nayeemrmn commented Oct 10, 2023

Fixes #11232. Basically when you open a remote file with F12, and then restart the language server while it's open, you wouldn't get intellisense for that file until you 'navigated to' it again.

When we denormalize a https: specifier to a deno: URL, we cache the result so it can be reverse-mapped on a roundtrip. The cache entry was required to do that reverse-mapping, this makes it stateless.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice fix

@nayeemrmn nayeemrmn merged commit 2215a3e into denoland:main Oct 10, 2023
13 checks passed
@nayeemrmn nayeemrmn deleted the lsp-deno-url-normalize-stateless branch October 11, 2023 06:24
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.

lsp: an unexpected specifier (deno:...) was provided
2 participants