phpactor / language-server

Generic Language Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodeActionProvider doc-comment return restricts possible action kinds

lumnn opened this issue · comments

commented

* @return list<CodeActionKind::*>

Documentation mentions it's an open list of a kinds, while doc-comment restricts them to the ones specified in CodeActionKind.

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeActionKind

probably just need to make that a string then

hm, although more of an issue with the protocol generator, it incorrectly identifies the "enum" instead of the type alias for a string.