fannheyward / coc-deno

Deno extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local imports are missing .ts extension

cryptogohan opened this issue · comments

This plugin is mostly doing pretty incredible, I've been having a small issue with imports the past few weeks.

Given two files:
dep.ts

export const age = 28;

and main.ts

console.log(age);

The LSP gives a helpful action to import when triggered on the age word:
Screenshot 2021-05-25 at 22 05 46

However, this is missing the .ts extension as should be added with Deno, which results in an error when importing.

Screenshot 2021-05-25 at 22 06 18

Should this be reported upstream? I didn't find anything in their issue tracker. Seems unlikely they wouldn't have noticed.

Tested in vscode, upstream issue.