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: auto import to .js file even though the actual file is a .d.ts file #23869

Open
lucacasonato opened this issue May 17, 2024 · 0 comments
Open
Labels
bug Something isn't working lsp related to the language server

Comments

@lucacasonato
Copy link
Member

import * as d3 from "https://esm.sh/d3@7.9.0";

Enter stack and accept the auto complete result from https://esm.sh/v135/@types/d3-shape@3.1.5.

You will get an import to https://esm.sh/v135/@types/d3-shape@3.1.5/index.js. This file does not exist, it should have been an import to https://esm.sh/v135/@types/d3-shape@3.1.5/index.d.ts:

import * as d3 from "https://esm.sh/d3@7.9.0";
import { stack } from "https://esm.sh/v135/@types/d3-shape@3.1.5/index.js";

stack

Version: Deno 1.43.4

@lucacasonato lucacasonato added bug Something isn't working lsp related to the language server labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp related to the language server
Projects
None yet
Development

No branches or pull requests

1 participant