what is the difference between VSCodeNotifyRange
and VSCodeNotifyRangePos
?
#2259
Unanswered
MrOxMasTer
asked this question in
Q&A
Replies: 1 comment
-
That is the vscode-neovim/runtime/vscode-neovim.vim Line 121 in 4df0f6e With the Lua api which replaces that api, that parameter would be passed as vscode-neovim/runtime/lua/vscode/api.lua Lines 98 to 109 in 4df0f6e So, an example call using the Lua api (just guessing based on your screenshot; please post code instead of screenshots): require('vscode').call('workbench.action.showCommands', {
range = {
start = { line = startPos[1], character = endPos[1] },
end = { line = startPos[2], character = endPos[2]},
},
restore_selection = true,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It's all wonderful of course that you want to switch completely to the Lua API, but such is the problem that I don't understand what the point of these functions are, or rather how they differ
I have some code that I borrowed from another person because I am not very good with neovim / lua and I would like to know the difference between these functions, because I am not that

old
of this extension and was not from the bottom of the VimScript API, but this piece ofdeprecated
information is not enough for me, and on the Lua API it is not clear at all how they differ:I would like to understand this API completely to fully understand how the function works.
Specifically, for example, what the last parameter in the
VSCodeNotifyRangePos
function is responsible for.Beta Was this translation helpful? Give feedback.
All reactions