LanguageServer.jl
LanguageServer.jl copied to clipboard
An implementation of the Microsoft Language Server Protocol for the Julia language.
Fixes a crash reporting bug.
For example ``` struct Foo x::Vector{Int} y::Union{Int,Nothing} end ``` shows up as ``` struct Foo
Writing the code ```julia using LinearAlgebra u = [1, 2, 3] v = [1, 2, 3] tensor_two = kron(u, v') ``` raises the problem `Possible method call error.Julia(IncorrectCallArgs)` on the...
This is implemented on top of https://github.com/julia-vscode/LanguageServer.jl/pull/1137.
This refactors the way error codes are handled, in preparation for making JSONRPC.jl less LSP specific, by hooking into custom error printing provided by an upstream PR. Requires https://github.com/julia-vscode/JSONRPC.jl/pull/70.
This file crashes the Julia language server: ```julia-repl julia> write("src/test.jl", repeat("0,",104300)) 208600 ``` Yes, that's a 200kB source file with nothing but 100k+ repetitions of `0,` (and no, I didn't...
@fredrikekre @pfitzseb I was wondering if the code action implemented in https://github.com/julia-vscode/LanguageServer.jl/pull/1076 could instead be moved to JuliaFormatter.jl, and then called via LanguageServer.jl? Having it implemented in LanguageServer directly makes...
Hey, i found an bug in the Language Server. When the formatter failed to format something it, was an unclosed String for me `" i`, the Server crashed. https://github.com/julia-vscode/LanguageServer.jl/blob/48ea5bf6d207c8698fb563b5403eadbbd4335561/src/requests/features.jl#L164 The...
https://github.com/julia-vscode/LanguageServer.jl/blob/48ea5bf6d207c8698fb563b5403eadbbd4335561/src/requests/features.jl#L143 from my understanding it is different than JuliaFormatter.jl default . Is it the reason I have to create a `.JuliaFormatter.toml` file for every project? Especially the margin setting.
When using the go-to-definition feature, the current behavior jumps to the method definition that potentially resides in another module; potentially even in another package. Instead, what I usually want is...