diff options
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 787cfeb8..a791e980 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -712,11 +712,11 @@ m.register 'completionItem/resolve' { --await.setPriority(1000) local state = files.getState(uri) if not state then - return nil + return item end local resolved = core.resolve(id) if not resolved then - return nil + return item end item.detail = resolved.detail or item.detail item.documentation = resolved.description and { @@ -772,8 +772,8 @@ m.register 'textDocument/signatureHelp' { for j, param in ipairs(result.params) do parameters[j] = { label = { - param.label[1], - param.label[2], + converter.len(result.label, 1, param.label[1]), + converter.len(result.label, 1, param.label[2]), } } end @@ -904,7 +904,7 @@ m.register 'textDocument/codeLens' { resolveProvider = true, } }, - abortByFileUpdate = true, + --abortByFileUpdate = true, ---@async function (params) local uri = files.getRealUri(params.textDocument.uri) |