diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-08-02 08:54:17 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 08:54:17 +1000 |
commit | 09d14b1b57ffe28e5d43d3fb3ae237cc944596ae (patch) | |
tree | 0cd720f5ee394a3a520262f1f060e03da3e5d910 /cli/tests | |
parent | 924aa31fa85689b619147d906d800e3ebad4e52e (diff) |
fix(lsp): use correct commit chars for completions (#15366)
Fixes: #15252
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 12 | ||||
-rw-r--r-- | cli/tests/testdata/lsp/completion_request_response_empty.json | 13 |
2 files changed, 14 insertions, 11 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 568ac6e7c..ceca077e8 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -775,7 +775,7 @@ fn lsp_import_map_import_completions() { "detail": "(local)", "sortText": "1", "insertText": ".", - "commitCharacters": ["\"", "'", "/"], + "commitCharacters": ["\"", "'"], }, { "label": "..", @@ -783,7 +783,7 @@ fn lsp_import_map_import_completions() { "detail": "(local)", "sortText": "1", "insertText": "..", - "commitCharacters": ["\"", "'", "/"], + "commitCharacters": ["\"", "'"], }, { "label": "std", @@ -791,7 +791,7 @@ fn lsp_import_map_import_completions() { "detail": "(import map)", "sortText": "std", "insertText": "std", - "commitCharacters": ["\"", "'", "/"], + "commitCharacters": ["\"", "'"], }, { "label": "fs", @@ -799,7 +799,7 @@ fn lsp_import_map_import_completions() { "detail": "(import map)", "sortText": "fs", "insertText": "fs", - "commitCharacters": ["\"", "'", "/"], + "commitCharacters": ["\"", "'"], }, { "label": "/~", @@ -807,7 +807,7 @@ fn lsp_import_map_import_completions() { "detail": "(import map)", "sortText": "/~", "insertText": "/~", - "commitCharacters": ["\"", "'", "/"], + "commitCharacters": ["\"", "'"], } ] })) @@ -889,7 +889,7 @@ fn lsp_import_map_import_completions() { }, "newText": "/~/b.ts" }, - "commitCharacters": ["\"", "'", "/"], + "commitCharacters": ["\"", "'"], } ] })) diff --git a/cli/tests/testdata/lsp/completion_request_response_empty.json b/cli/tests/testdata/lsp/completion_request_response_empty.json index c2218aaa7..9ece16e90 100644 --- a/cli/tests/testdata/lsp/completion_request_response_empty.json +++ b/cli/tests/testdata/lsp/completion_request_response_empty.json @@ -9,8 +9,7 @@ "insertText": ".", "commitCharacters": [ "\"", - "'", - "/" + "'" ] }, { @@ -21,8 +20,7 @@ "insertText": "..", "commitCharacters": [ "\"", - "'", - "/" + "'" ] }, { @@ -42,7 +40,12 @@ } }, "newText": "http://localhost:4545" - } + }, + "commitCharacters": [ + "\"", + "'", + "/" + ] } ] } |