visual studio code - How to report a crashed language server to the user - Stack Overflow

My VS Code extension is starting a language server (win, exe) on basis of the language server protocol

My VS Code extension is starting a language server (win, exe) on basis of the language server protocol via a socket connection. Under some circumstances (coding problems) that languageserver.exe crashes, so no support for the VS Code editor is available any more. The end-user does not get informed about the loss of support, except that the editor screen does not get any refreshes by a language server validation.

What would be the best concept to detect and report an unavailable language server service to the end-user?

Should there be a cyclic "ping" to the language server or is there a special request with a timeout? Or is there a feature in VS Code which tests the connection to the language server?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742358714a4428957.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信