mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
Still pretty clunky but sort of usable
This commit is contained in:
parent
527439b7c2
commit
88e0d224e3
@ -628,6 +628,10 @@ void QueryDbMainLoop(
|
||||
case IpcId::TextDocumentDidSave: {
|
||||
auto msg = static_cast<Ipc_TextDocumentDidSave*>(message.get());
|
||||
|
||||
WorkingFile* working_file = working_files->GetFileByFilename(msg->params.textDocument.uri.GetPath());
|
||||
if (working_file)
|
||||
working_file->changes.clear();
|
||||
|
||||
// Send an index update request.
|
||||
Index_DoIndex request(Index_DoIndex::Type::Update);
|
||||
optional<CompilationEntry> entry = project->FindCompilationEntryForFile(msg->params.textDocument.uri.GetPath());
|
||||
|
Loading…
Reference in New Issue
Block a user