mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-02 15:02:19 +00:00
Clear diagnostics for open files.
This commit is contained in:
parent
7b790e7da3
commit
f5efa02448
@ -2154,7 +2154,15 @@ bool QueryDbMainLoop(
|
|||||||
|
|
||||||
case IpcId::TextDocumentDidClose: {
|
case IpcId::TextDocumentDidClose: {
|
||||||
auto msg = static_cast<Ipc_TextDocumentDidClose*>(message.get());
|
auto msg = static_cast<Ipc_TextDocumentDidClose*>(message.get());
|
||||||
|
|
||||||
|
// Clear any diagnostics for the file.
|
||||||
|
Out_TextDocumentPublishDiagnostics diag;
|
||||||
|
diag.params.uri = msg->params.textDocument.uri;
|
||||||
|
IpcManager::instance()->SendOutMessageToClient(IpcId::TextDocumentPublishDiagnostics, diag);
|
||||||
|
|
||||||
|
// Remove internal state.
|
||||||
working_files->OnClose(msg->params);
|
working_files->OnClose(msg->params);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user