Browse Source

Still pretty clunky but sort of usable

pull/2/head
Jacob Dufault 8 years ago
parent
commit
88e0d224e3
  1. 4
      src/command_line.cc

4
src/command_line.cc

@ -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…
Cancel
Save