-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(lsp): auto-imports with @deno-types directives #26821
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (once it compiles)
@nayeemrmn I can update this PR with main. I caused some conflicts. |
code_specifier, | ||
&range, | ||
// todo(dsherret): this is wrong because it doesn't consider CJS referrers | ||
deno_package_json::NodeModuleKind::Esm, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nayeemrmn note that this isn't always correct for CJS referrers, but it's probably fine to merge.
Closes denoland/vscode_deno#1204.
Inserts
// @deno-types=...
for auto-import completions. These suggestions are sourced from other@deno-types
usages and"jsxImportSourceTypes"
indeno.json
.