LSP uri jumps to correct column (locations cols|lines are 0-based)

main
bhagwan 2 years ago
parent 6d3b884f73
commit da2a04d052

@ -153,7 +153,7 @@ end
function M.entry_to_location(entry)
local uri, line, col = entry:match("^(.*://.*):(%d+):(%d+):")
line = line and tonumber(line-1) or 0
col = col and tonumber(col) or 1
col = col and tonumber(col-1) or 0
return {
stripped = entry,
line = line+1,

Loading…
Cancel
Save