Changelog

denoland/deno · · 1 commit

LSP auto-imports now honor import map aliases

Deno’s LSP now suggests meaningful import map aliases for local directories instead of falling back to relative paths.

LSP auto-imports keep alias mappings for local dirs (bartlomiejuaf49b5b)

Deno’s import resolution logic was narrowed so auto-import completions no longer suppress meaningful aliases like @app/ just because the referrer lives inside the mapped directory. This fixes suggestions such as @app/islands/components/Button.tsx instead of a less useful relative path, improving DX for projects that rely on alias-based import maps.

Other misc changes

  • Added regression coverage for alias-based auto-imports inside mapped directories.
  • Refactored import-map lookup behavior to distinguish diagnostics from completion-time suggestions.