diff options
Diffstat (limited to 'server/src/method/textDocument/implementation.lua')
-rw-r--r-- | server/src/method/textDocument/implementation.lua | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/server/src/method/textDocument/implementation.lua b/server/src/method/textDocument/implementation.lua index 250909cb..8f878850 100644 --- a/server/src/method/textDocument/implementation.lua +++ b/server/src/method/textDocument/implementation.lua @@ -37,7 +37,7 @@ local function findResult(lsp, params) if valueLines then local start_row, start_col = valueLines:rowcol(start) local finish_row, finish_col = valueLines:rowcol(finish) - locations[i] = { + locations[#locations] = { uri = valueUri, range = { start = { @@ -51,6 +51,20 @@ local function findResult(lsp, params) }, } } + else + locations[#locations] = { + uri = valueUri, + range = { + start = { + line = 0, + character = 0, + }, + ['end'] = { + line = 0, + character = 0, + }, + } + } end end |