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): complete exports for import mapped jsr specifiers #24054

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

nayeemrmn
Copy link
Collaborator

Also clean up local file completions for import mapped relative specifiers, this worked in a really weird way: https://github.com/denoland/deno/blob/v1.44.0/cli/lsp/completions.rs#L319-L352. Both of these are now done by first using the resolver to find the actual 1) JSR package or 2) local directory, and applying the current logic to that instead of the raw partial specifier.

Fixes #24050, this is just https://github.com/denoland/deno/blob/v1.44.0/cli/lsp/completions.rs#L377-L382 being in the wrong scope.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@nayeemrmn nayeemrmn merged commit 72088f2 into denoland:main Jun 3, 2024
17 checks passed
@nayeemrmn nayeemrmn deleted the lsp-import-map-completions branch June 3, 2024 20:33
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: import specifier autocompletion from import map is broken
2 participants