nim-lang/langserver

Server crashes if it encounteres unknown nimsuggest capabilities

Closed this issue · 0 comments

The language server queries and parses the list of nimsuggest capabilities via nimsuggest --info:capabilities. In case nimsuggest returns a capability, that is unknown to the server (i.e. not supported), the server crashes. It should not crash. Nimsuggest is supposed to be backwards compatible, so if the server doesn't know about a particular new feature, it should be safe to ignore it.