diff options
author | Andrey Avramenko <andreyavr@gmail.com> | 2020-04-20 20:20:14 +0300 |
---|---|---|
committer | Andrey Avramenko <andreyavr@gmail.com> | 2020-04-20 20:20:14 +0300 |
commit | 49045b173e0d67a2d140cf914513dc99d2d0d51b (patch) | |
tree | a19565ee5ed99de01888339b10ee01c7c4434e5c | |
parent | a0d2bfeeb5c5b344bbddf496c3259e26f0974203 (diff) | |
download | rneovim-49045b173e0d67a2d140cf914513dc99d2d0d51b.tar.gz rneovim-49045b173e0d67a2d140cf914513dc99d2d0d51b.tar.bz2 rneovim-49045b173e0d67a2d140cf914513dc99d2d0d51b.zip |
test: add docs for get_completion_word test
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index 7e9abaac2b..b21e344acd 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -812,11 +812,12 @@ describe('LSP', function() }, buf_lines(1)) end) end) -end) -describe('LSP', function() describe('completion_list_to_complete_items', function() - it('should choose right completion option ', function () + -- Completion option precedence: + -- textEdit.newText > insertText > label + -- https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_completion + it('should choose right completion option', function () local prefix = 'foo' local completion_list = { -- resolves into label |