deno: lsp: import-map-remap misbehaves with relative map keys
After upgrading to v1.24.0, importing from local files (as long as the module is not in the root directory) triggers below warning:
The import specifier can be remapped to "./some_dir/bar.ts" which will resolve it via the active import map. deno(import-map-remap)
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 9
- Comments: 15 (6 by maintainers)
The quick fix currently suggests replacing
./bar.tswith./utils/bar.ts, which does not look good to me.I disagree that it should only be applied to bare specifiers. If you have remapped stuff locally in an import map, having a hint diagnostic and a quick fix doesn’t hurt anything.
@lucacasonato thoughts?