You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript alone doesn't seem to have this issue -- I can't reproduce it on the TypeScript playground and have never run into this in non-Deno TypeScript in VS Code.
We shouldn't be doing auto-import suggestions using a relative path to the npm cache.
The deno language server does seem super aggressive compared to the regular typescript lanuage server. The above doesn't fill in xor when using typescript's.
As a sidenote, the reason it does completions in this case, is because typescript thinks that's a parenthesized expression rather than an arrow function parameter list.
Describe the bug
Typing a
,
in this context adds the top autocomplete suggestion and auto-imports it:This is the result after I hit the
,
key:This is bad on a few levels:
xor
instead ofx
, which is what I typed.To Reproduce
,
after the first parameterExpected behavior
If I type
(x, i) =>
to define an arrow function, I expect it to come out as(x, i) =>
rather than(xor, i) =>
.Screenshots
Here's the code from the screenshots:
The
xor
symbol is coming from lodash, which I've imported in adeps.ts
file:TypeScript alone doesn't seem to have this issue -- I can't reproduce it on the TypeScript playground and have never run into this in non-Deno TypeScript in VS Code.
Versions
The text was updated successfully, but these errors were encountered: