Still pretty clunky but sort of usable

This commit is contained in:
Jacob Dufault 2017-04-09 17:17:49 -07:00
parent 527439b7c2
commit 88e0d224e3

View File

@ -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());