mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
feat(lsp): add original LSP Location as item's user_data in locations_to_items (#23743)
This commit is contained in:
@@ -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 [[
|
||||
|
Reference in New Issue
Block a user