microsoft/language-server-protocol

Add a free-text "description" field to `serverInfo`

Open

#1,752 opened on 2023年6月23日

GitHub で見る
 (0 comments) (1 reaction) (0 assignees)HTML (12,810 stars) (956 forks)batch import
feature-requesthelp wantedinitialization

説明

It would be nice to have a free-text (or perhaps markdown) field in serverInfo for the server to provide any server-specific information that it thinks the user might want to see.

Here's an example. The Haskell language server supports different features depending which version of the Haskell compiler it is built for (typically we start with partial support for a new compiler version and then add more over time). This means that users can be surprised that some feature is not available. At the moment, we have no easy way of conveying this to the user. The information is HLS-specific, so it's not clear that we could have a standard format for "server features". The simplest thing would just be to have a free text field so the server can put whatever it wants in there.

We can of course emit this information to the log, but it would be nice for users to have a standard place where static information about the server was recorded.

コントリビューターガイド