aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorTom Praschan <13141438+tom-anders@users.noreply.github.com>2023-09-07 10:12:02 +0200
committerGitHub <noreply@github.com>2023-09-07 10:12:02 +0200
commit131a1ee82d15ce9d1356a46117c9a1651947d4b8 (patch)
tree2560b881a308fb508b71060cb005403e3240f040 /test/functional/plugin/lsp_spec.lua
parentec753cf40db4d326c2fbbf5e5be0d249be561a41 (diff)
downloadrneovim-131a1ee82d15ce9d1356a46117c9a1651947d4b8.tar.gz
rneovim-131a1ee82d15ce9d1356a46117c9a1651947d4b8.tar.bz2
rneovim-131a1ee82d15ce9d1356a46117c9a1651947d4b8.zip
feat(lsp): add original LSP Location as item's user_data in locations_to_items (#23743)
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua22
1 files changed, 20 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 6223c6b8d8..3eb89b4556 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -2387,7 +2387,14 @@ describe('LSP', function()
filename = '/fake/uri',
lnum = 1,
col = 3,
- text = 'testing'
+ text = 'testing',
+ user_data = {
+ uri = 'file:///fake/uri',
+ range = {
+ start = { line = 0, character = 2 },
+ ['end'] = { line = 0, character = 3 },
+ }
+ }
},
}
local actual = exec_lua [[
@@ -2413,7 +2420,18 @@ describe('LSP', function()
filename = '/fake/uri',
lnum = 1,
col = 3,
- text = 'testing'
+ text = 'testing',
+ user_data = {
+ targetUri = "file:///fake/uri",
+ targetRange = {
+ start = { line = 0, character = 2 },
+ ['end'] = { line = 0, character = 3 },
+ },
+ targetSelectionRange = {
+ start = { line = 0, character = 2 },
+ ['end'] = { line = 0, character = 3 },
+ }
+ }
},
}
local actual = exec_lua [[