vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

relative path import suggestions does not exclude `DENO_DIR`

Open scarf005 opened this issue 3 months ago • 0 comments

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

scarf005 avatar Apr 03 '24 02:04 scarf005