diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-03 17:54:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-03 17:54:07 +0800 |
commit | e0fc095a9531ef415023c04b3faf071631eecd95 (patch) | |
tree | 075372fb8eeebaa9268fb89345395cab06ac6530 | |
parent | b06ba33652c0c1fd9b496c81df1f252c2c614400 (diff) | |
download | lua-language-server-e0fc095a9531ef415023c04b3faf071631eecd95.zip |
fix `detail` disappears during continuous input
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/provider/provider.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index b9571d52..b49c5f51 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## 1.17.3 * `CHG` intelli-scense: treat `V[]` as `table<integer, V>` in `pairs` +* `FIX` completion: `detail` disappears during continuous input * `FIX` [#435](https://github.com/sumneko/lua-language-server/issues/435) * `FIX` [#436](https://github.com/sumneko/lua-language-server/issues/436) diff --git a/script/provider/provider.lua b/script/provider/provider.lua index ddab6635..fb7dbe99 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -460,6 +460,7 @@ proto.on('textDocument/completion', function (params) local item = { label = res.label, kind = res.kind, + detail = res.detail, deprecated = res.deprecated, sortText = ('%04d'):format(i), filterText = res.filterText, |