microsoft / vscode-languageserver-node

Language server protocol implementation for VSCode. This allows implementing language services in JS/TS running on node.js
MIT License
1.48k stars 325 forks source link

Extra `true` in the output log when a language server disconnects #1548

Closed ogoffart closed 2 months ago

ogoffart commented 2 months ago

This is quite a minor issue and I don't even know if that's the right repository to report this "bug", but there is an extra true in the output when a language server disconnects, and it looks messy in the log. It looks like this:

[Info  - 9:24:48 AM] Connection to server got closed. Server will restart.
true

Looking for the text in an internet search shows that this extra "true" is present for most language server. (As paste the debug output in their bug report). They all have the extra "true". https://github.com/dart-lang/sdk/issues/54441 https://github.com/Exafunction/codeium.vim/issues/403 https://github.com/scalameta/metals-vscode/issues/1509 https://github.com/slint-ui/slint/issues/4619 https://github.com/swiftlang/sourcekit-lsp/issues/1521#issuecomment-2190242153 https://github.com/nim-lang/langserver/issues/207 https://github.com/DetachHead/basedpyright/issues/592 (... and many more) Although one can also find a few occurrences of "false" https://github.com/microsoft/vscode-java-debug/issues/1421 https://github.com/redhat-developer/vscode-java/issues/2756#issuecomment-1754825906

I couldn't figure out easily where this bool output output come from.