最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论