We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb1776 commit 12fd6e7Copy full SHA for 12fd6e7
src/requests/actions.jl
@@ -48,7 +48,7 @@ end
48
function textDocument_codeAction_request(params::CodeActionParams, server::LanguageServerInstance, conn)
49
actions = CodeAction[]
50
doc = getdocument(server, params.textDocument.uri)
51
- offset = get_offset(doc, params.range.start)
+ offset = index_at(doc, params.range.start)
52
x = get_expr(getcst(doc), offset)
53
arguments = Any[params.textDocument.uri, offset] # use the same arguments for all commands
54
if x isa EXPR
0 commit comments