Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
631 stars 94 forks source link

初始化luahelper-lsp的InitializeResult里,capabilities.executeCommandProvider.commands 为 null #128

Open pppKin opened 2 years ago

pppKin commented 2 years ago

如下:

{
    "capabilities": {
        // ...omitted...
        "executeCommandProvider": {
            "commands": null
        },
        // ...omitted...
    },
    "serverInfo": {
        "name": ""
    }
}

根据lsp的文档,commands应当为一个数组。此处返回null会导致有些lsp client初始化失败(例如helix 用到的 lsp-types)