microsoft/language-server-protocol

[Feature] ServerInfo request

Open

#558 创建于 2018年8月28日

在 GitHub 查看
 (7 评论) (2 反应) (0 负责人)HTML (956 fork)batch import
feature-requestgood first issuehelp wantednew request

仓库指标

Star
 (12,810 star)
PR 合并指标
 (平均合并 19小时 29分钟) (30 天内合并 12 个 PR)

描述

For monitoring and troubleshooting the Language Server, it is extremely useful to have server information printer in the editor. Most Vim clients either don't provide any way of printing out LSP server address, log file, etc or use their own format (e.g. here's my request for a Vim client). It might be useful for both users and LSP developers to provide a unified request (workspace/serverInfo?) and server information format. There are few things we could ask from every server:

  • Server PID (so that I could attach my debugger to the process)
  • Log files: both stdout and sterr files
  • URL
  • Memory consumption
  • Additional (optional) server information string which can be specific to each server (e.g. which one is used, what the version is, etc)

Having this information would provide better user experience for bug submissions and better developer experience. Alternatively, we could allow servers to return a string in free format letting each server decide what they would like to expose to the client.

This is an example of server information printer in Vim's YouCompleteMe:

43989813-6e98d63a-9d51-11e8-93a1-62125c874c88

贡献者指南