manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.46k stars 214 forks source link

Dart 语言函数补全时缺少括号 #851

Closed SpringHan closed 9 months ago

SpringHan commented 9 months ago

在 dart 里调用函数时总是缺失括号,导致编码体验不好,我看了下 log ,其中一条如下:

{
    "detail": "() \u2192 Future<void>",
    "documentation": "Sets the app to be full-screen (no buttons, bar or notifications on top).",
    "filterText": "fullScreen",
    "kind": 2,
    "label": "fullScreen()",
    "sortText": "9999499",
    "textEdit": {
        "newText": "fullScreen",
        "range": {
            "end": {
                "character": 15,
                "line": 8
            },
            "start": {
                "character": 15,
                "line": 8
            }
        }
    }
}

返回的日志中 newText 确实缺少了括号。目前还没时间确定是 language server 的问题还是 lsp 配置问题,我明天再试试。

SpringHan commented 9 months ago

试验了发现开启 completeFunctionCalls 后有所改善,但仍然有部分情况下不能补全。
但我装了 VSCode ,发现效果和我修改后差不多,目前看来是 language server 的问题。