mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-04 05:27:09 +00:00
Undo changes to diagnostics engine and import pipeline
They didn't seem necessary
This commit is contained in:
parent
f17196e3da
commit
958422e77f
@ -13,6 +13,11 @@ void DiagnosticsEngine::Init(Config* config) {
|
|||||||
void DiagnosticsEngine::Publish(WorkingFiles* working_files,
|
void DiagnosticsEngine::Publish(WorkingFiles* working_files,
|
||||||
std::string path,
|
std::string path,
|
||||||
std::vector<lsDiagnostic> diagnostics) {
|
std::vector<lsDiagnostic> diagnostics) {
|
||||||
|
// Cache diagnostics so we can show fixits.
|
||||||
|
working_files->DoActionOnFile(path, [&](WorkingFile* working_file) {
|
||||||
|
if (working_file)
|
||||||
|
working_file->diagnostics_ = diagnostics;
|
||||||
|
});
|
||||||
|
|
||||||
int64_t now =
|
int64_t now =
|
||||||
std::chrono::duration_cast<std::chrono::milliseconds>(
|
std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||||
|
@ -408,12 +408,6 @@ void ParseFile(Config* config,
|
|||||||
for (std::unique_ptr<IndexFile>& new_index : *indexes) {
|
for (std::unique_ptr<IndexFile>& new_index : *indexes) {
|
||||||
Timer time;
|
Timer time;
|
||||||
|
|
||||||
// Cache diagnostics so we can show fixits.
|
|
||||||
working_files->DoActionOnFile(path, [&](WorkingFile* working_file) {
|
|
||||||
if (working_file)
|
|
||||||
working_file->diagnostics_ = diagnostics;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Only emit diagnostics for non-interactive sessions, which makes it easier
|
// Only emit diagnostics for non-interactive sessions, which makes it easier
|
||||||
// to identify indexing problems. For interactive sessions, diagnostics are
|
// to identify indexing problems. For interactive sessions, diagnostics are
|
||||||
// handled by code completion.
|
// handled by code completion.
|
||||||
|
Loading…
Reference in New Issue
Block a user