Hangs if file ends in empty comment
nonpop opened this issue · 0 comments
nonpop commented
arch linux, vscode 1.36.1, ElmLS 0.3.0
Create a new project with elm init
and create src/Foo.elm
with the following contents:
module Foo exposing (foo)
foo = 42
--
Make sure there is no newline after the dashes, use save without formattig if necessary. Restart vscode. Now the client/ls hangs with 100% cpu usage. Closing vscode does not kill the halted process. If this file exists then opening vscode will start consuming 100% cpu even if the file itself is not opened. Adding a newline after the comment fixes the problem.