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
I was working on this Advent of Code problem and had an odd bug where I printed #. instead of . which gave me a wrong answer. Oh well, probably fat fingered it.
For part two of the problem, I spent quite a while debugging my incorrect solution before eventually realizing I'd made the exact same mistake a second time. Now I was suspicious. It turns out it was the VSCode Deno extension's fault. It was quietly changing '.' to '#.' as I typed the former. That string ('#.') never appears on its own elsewhere in my code, only as a substring of larger strings:
Thanks for reporting these issues, Dan. The language server has some rough edges (especially related to node compatibility). We're planning on prioritizing fixes for it in the new year.
Describe the bug
I was working on this Advent of Code problem and had an odd bug where I printed
#.
instead of.
which gave me a wrong answer. Oh well, probably fat fingered it.For part two of the problem, I spent quite a while debugging my incorrect solution before eventually realizing I'd made the exact same mistake a second time. Now I was suspicious. It turns out it was the VSCode Deno extension's fault. It was quietly changing
'.'
to'#.'
as I typed the former. That string ('#.'
) never appears on its own elsewhere in my code, only as a substring of larger strings:Screen.Recording.2022-12-10.at.11.01.05.AM.mov
To Reproduce
'.'
by typing'
then.
then'
as in the video'#.'
.The surprising change happens when I type the
.
character.Expected behavior
When I type
'.'
, I would expect to get that string in my source code, rather than a different string.For comparison, the TypeScript playground does exactly what I expect with this same source code.
Screenshots
Here's the video again, where I type
'
then.
then'
:Screen.Recording.2022-12-10.at.11.01.05.AM.mov
Versions
The text was updated successfully, but these errors were encountered: