message: verilog: tools: ls: verilog_ls: Added checking of presence of the last good buffer
diff: @@ -207,6 +207,7 @@ void VerilogLanguageServer::UpdateEditedFileInProject(
  if (path.empty()) {
  LOG(ERROR) << "Could not convert LS URI to path: " << uri;
  }
  + if (buffer_tracker.last_good()) {
  absl::Status status = project->updateFileContents(
  path, &buffer_tracker.last_good()->parser().Data());
  if (!status.ok()) {
  @@ -216,5 +217,6 @@ void VerilogLanguageServer::UpdateEditedFileInProject(
  LOG(INFO) << "Updated file: " << uri << "(" << path << ")";
  symbol_table_handler_.buildProjectSymbolTable();
  }
  +}
  }; // namespace verilog
  