mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-11-03 22:04:24 +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,
 | 
			
		||||
                                std::string path,
 | 
			
		||||
                                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 =
 | 
			
		||||
      std::chrono::duration_cast<std::chrono::milliseconds>(
 | 
			
		||||
 | 
			
		||||
@ -408,12 +408,6 @@ void ParseFile(Config* config,
 | 
			
		||||
  for (std::unique_ptr<IndexFile>& new_index : *indexes) {
 | 
			
		||||
    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
 | 
			
		||||
    // to identify indexing problems. For interactive sessions, diagnostics are
 | 
			
		||||
    // handled by code completion.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user