mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
fix(typescript): make_position_params with offset encoding. (#6277)
Fixed for issue https://github.com/LazyVim/LazyVim/issues/6276
This commit is contained in:
parent
4086d44a0b
commit
22152e958f
1 changed files with 2 additions and 1 deletions
|
|
@ -69,7 +69,8 @@ return {
|
||||||
{
|
{
|
||||||
"gD",
|
"gD",
|
||||||
function()
|
function()
|
||||||
local params = vim.lsp.util.make_position_params()
|
local win = vim.api.nvim_get_current_win()
|
||||||
|
local params = vim.lsp.util.make_position_params(win, "utf-16")
|
||||||
LazyVim.lsp.execute({
|
LazyVim.lsp.execute({
|
||||||
command = "typescript.goToSourceDefinition",
|
command = "typescript.goToSourceDefinition",
|
||||||
arguments = { params.textDocument.uri, params.position },
|
arguments = { params.textDocument.uri, params.position },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue