LanguageServer.jl
LanguageServer.jl copied to clipboard
An implementation of the Microsoft Language Server Protocol for the Julia language.
```julia # scalar.jl module Scalars const Scalar = Union{Signed,AbstractFloat} export Scalar end ``` ```julia # vector.jl module Vectors import StaticArrays as SA using Scalars abstract type BaseVector{N,T
When an import alias matches a type parameter name, [LS.jl](https://github.com/search?q=LS.jl&type=Repositories) gets confused. Conflict (but code loads and works fine): ![](https://img.mfiano.net/aSXwjD.png) No conflict: ![](https://img.mfiano.net/qHMrMA.png)
As per[ this Zulip thread](https://julialang.zulipchat.com/#narrow/stream/225542-helpdesk/topic/baremodule.20and.20LanguageServer.2Ejl), `baremodule`s seem to need some special-casing to prevent false LS warnings.
This is generally closer to what people expect when talking about references. Before: ![image](https://user-images.githubusercontent.com/6735977/174311466-6a8e187f-05f6-494e-949f-9c59ab6f3815.png) After: ![image](https://user-images.githubusercontent.com/6735977/174311273-57ec3ac8-b1fe-4e30-b909-10870fecb9af.png)
We could have a code action on each warning/error diagnostic that says "This is incorrect, file an issue with the devs" that then makes it easy to send the code...
When using `CBinding.jl` (or a package depending on it) the language server crashes when it tries to cache this package. Steps to reproduce: ``` (test) pkg> add CBinding ``` (evenually...
Probably an issue in SymbolServer or StaticLint, but e.g. in ``` import Example hello("foo") # Missing reference hello ``` this can't be fixed because Example isn't in https://github.com/julia-vscode/LanguageServer.jl/blob/018d838372837bdc4519e37cc7c4bab10527fc82/src/requests/actions.jl#L292 In contrast,...
I am developing inside a docker container and the Julia Language Server is never able to load the first package from the cache. The log just shows this for hours:...
![image](https://user-images.githubusercontent.com/6735977/167164034-0e10b9e7-b64a-4fa0-bb5c-2d70d4fdbc98.png) Todo: - [ ] better method selection - [x] better tooltips - [x] take request range into account - [x] get rid of hints in func defs - [x]...
I'm using LS.jl with Sublime. A problem I've encountered is that sometimes some imports get marked as "Missing reference", but not in VSC and not when running the script. After...