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

relative path import suggestions does not exclude DENO_DIR #1100

Open
scarf005 opened this issue Apr 3, 2024 · 0 comments
Open

relative path import suggestions does not exclude DENO_DIR #1100

scarf005 opened this issue Apr 3, 2024 · 0 comments

Comments

@scarf005
Copy link

scarf005 commented Apr 3, 2024

Describe the bug

The deno LSP import suggestion tries to relatively import cache files in DENO_DIR (~/.cache/deno) such as ../../.cache/deno/npm/registry.npmjs.org/@octokit/types/12.6.0/dist-types/OctokitResponse.d.ts.

To Reproduce

This is really hard to reproduce correctly, but happens frequently.

  1. cache @octokit/types.
  2. try to import Signal type from project.
  3. relative paths suggestions creep into DENO_DIR and suggest files from cache.

Expected behavior

import suggestions should exclude relative DENO_DIR.

Screenshots

image

Versions

deno 1.42.1+f76c38b (canary, x86_64-unknown-linux-gnu)
v8 12.3.219.9
typescript 5.4.3
deno extension v3.36.0

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

No branches or pull requests

1 participant