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

lsp: Autocompleting imports results in an empty string under certain conditions #28076

Open
jespertheend opened this issue Feb 12, 2025 · 2 comments
Labels
lsp related to the language server

Comments

@jespertheend
Copy link
Contributor

Version: Deno 2.1.9

Screen.Recording.2025-02-12.at.01.18.03.mov

The conditions under which I was able to reproduce this:
deno.json

{
	"imports": {
		"$rollup": "npm:[email protected]"
	}
}

foo.ts

import {rollup} from "$rollup";

export function foo() {}

bar.ts

import { foo } from "./foo.ts";
import { }
//      ^
// Autocomplete above

foo();
@bartlomieju
Copy link
Member

Thanks, I can reproduce the issue. Just to be sure - the problem you're describing here is that on the right hand side of the import, the specifier is an empty string, instead of "$rollup"?

@bartlomieju bartlomieju added the lsp related to the language server label Feb 12, 2025
@jespertheend
Copy link
Contributor Author

Yes, that's correct 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lsp related to the language server
Projects
None yet
Development

No branches or pull requests

2 participants