aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorTom Praschan <13141438+tom-anders@users.noreply.github.com>2024-06-10 03:14:55 +0200
committerGitHub <noreply@github.com>2024-06-09 18:14:55 -0700
commit20f22f75ee629ae2db4cd99e730fa0af26553177 (patch)
tree80467186dba18a1c41247d3d44afa38fa56d3a76 /test/functional/plugin/lsp_spec.lua
parent40329f32d809302196ffd3f47b4d01a1d67f5a9b (diff)
downloadrneovim-20f22f75ee629ae2db4cd99e730fa0af26553177.tar.gz
rneovim-20f22f75ee629ae2db4cd99e730fa0af26553177.tar.bz2
rneovim-20f22f75ee629ae2db4cd99e730fa0af26553177.zip
feat(lsp): include end_col, end_lnum in vim.lsp.buf.locations_to_items #29164
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 6d28b83be8..50e9c0cc0f 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -2690,13 +2690,15 @@ describe('LSP', function()
{
filename = '/fake/uri',
lnum = 1,
+ end_lnum = 2,
col = 3,
+ end_col = 4,
text = 'testing',
user_data = {
uri = 'file:///fake/uri',
range = {
start = { line = 0, character = 2 },
- ['end'] = { line = 0, character = 3 },
+ ['end'] = { line = 1, character = 3 },
},
},
},
@@ -2710,7 +2712,7 @@ describe('LSP', function()
uri = 'file:///fake/uri',
range = {
start = { line = 0, character = 2 },
- ['end'] = { line = 0, character = 3 },
+ ['end'] = { line = 1, character = 3 },
}
},
}
@@ -2723,7 +2725,9 @@ describe('LSP', function()
{
filename = '/fake/uri',
lnum = 1,
+ end_lnum = 1,
col = 3,
+ end_col = 4,
text = 'testing',
user_data = {
targetUri = 'file:///fake/uri',