-
Notifications
You must be signed in to change notification settings - Fork 812
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
PublishDiagnostics Notification and File Deletions #463
Comments
According to the specification...
This has been brought up in other VS Code extensions in the past. See microsoft/vscode-docker#237 and ionide/ionide-vscode-fsharp#730. Although it does seem to me like clients should just wipe these things out themselves. Especially in the case where the client initiated the deletion (and you didn't popup an external terminal and called What does everyone else think? |
no i used the normal delete file context menu in vscode. @mickaelistria how does lsp4e treat this situation? at least in eclipse you cannot show resource markers for files that are not there anymore |
For LSP4E and Eclipse IDE in general, it's just impossible by design of the marker API to create or keep a marker for a file that doesn't exist, so removing a file does remove automatically all markers. |
no i mean it the other way round: what happens if in lsp4e the server reports issues for files that do no exist: does it give a framework error in lsp4e |
If LSP4E receives diagnostics on files that don't exist, those are just
ignored:
http://git.eclipse.org/c/lsp4e/lsp4e.git/tree/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/diagnostics/LSPDiagnosticsToMarkers.java#n66
. I don't think we'll change this behavior in LSP4E unless there are valid
user-stories to suppor it.
|
To make things consistent in all cases we decided to make the creator of markers responsible for their deletions. Since the marker were created my the server he owns them and needs to wipe them. Unless I see a compelling case to change this I opt to close this issue. The current design is easy to communicate since it has no exceptions. |
if the client deletes a file is the server then required to send a empty PublishDiagnostics Notification to clear the issues? at least vscode does not seem to clear the issues for deleted resources.
The text was updated successfully, but these errors were encountered: