Skip to content

Commit 8da0d2b

Browse files
authored
Merge branch 'master' into disable-comp
2 parents d78754c + 6601aac commit 8da0d2b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/requests/actions.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ end
77
function textDocument_codeAction_request(params::CodeActionParams, server::LanguageServerInstance, conn)
88
commands = Command[]
99
doc = getdocument(server, URI2(params.textDocument.uri))
10-
offset = get_offset(doc, params.range.start)
11-
offset1 = get_offset(doc, params.range.stop)
10+
offset = get_offset(doc, params.range.start) # Should usef get_offset2?
1211
x = get_expr(getcst(doc), offset)
13-
arguments = Any[params.textDocument.uri, offset, offset1] # use the same arguments for all commands
12+
arguments = Any[params.textDocument.uri, offset] # use the same arguments for all commands
1413
if x isa EXPR
1514
for (_, sa) in LSActions
1615
if sa.when(x, params)

src/requests/signatures.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ function textDocument_signatureHelp_request(params::TextDocumentPositionParams,
3030
return SignatureHelp(filter(s -> length(s.parameters) > arg, sigs), 0, arg)
3131
end
3232

33+
function get_signatures(b, tls::StaticLint.Scope, sigs::Vector{SignatureInformation}, server) end
34+
3335
function get_signatures(b::StaticLint.Binding, tls::StaticLint.Scope, sigs::Vector{SignatureInformation}, server)
3436
if b.val isa StaticLint.Binding
3537
get_signatures(b.val, tls, sigs, server)

0 commit comments

Comments
 (0)