-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language client requests diagnostics illogically #1584
Comments
@robotman2412 I tried to reproduce this in my testbed but I am unable to do so. Can you try to set a breakpoint in I assume you are using pull diagnostics. Do you have inter file dependencies set to true? |
I have inter file deps set to true. |
That is pull diagnostics. The server specifies this via its capabilities. Is that what your server is doing? |
The server is capable of pull diagnostics. If it weren't (or not correctly) then I would never get any diagnostics. |
If you have inter file dependencies set to true it will request diagnostics for files open in other tabs as well. This is done to ensure porper diagnostics in cases where changes in file A might fix or add new diagnostics in file B |
I've created a language server and an extension counterpart that uses this library (v9.0.1) as the language client. The language server works fine but (at least with the example code) the language client requests diagnostics for the wrong file when opening files in the editor.
When I open one file, then open another (so two tabs now), the diagnostics for the first file are requested twice (as opposed to once for each file). I also can't figure out how to request diagnostics again when saving a file.
Now this would be an issue I could work around if I knew how to explicitly tell the language client to "go get diagnostics for that file" but I don't. I also can't find any obvious documentation other than the relatively surface-level tutorials from Microsoft.
Language server is
asm.py
from https://github.com/robotman2412/faerie-cpuLanguage client extension is https://github.com/robotman2412/vscode-faerieasm
Note: The language client looks for the language server as
faerie-as
by default, which I've symlinked (~/.local/bin/faerie-as
->asm.py
) locally. You can either do the same, or open the extension settings and enter the full path toasm.py
.The text was updated successfully, but these errors were encountered: