Fixes an issue when reloading documents (file system change) that disabled the linter by mistake.

This commit is contained in:
Martín Lucas Golini
2023-11-09 20:32:45 -03:00
parent 7f80638632
commit e9654631ea
7 changed files with 21 additions and 3 deletions

View File

@@ -104,6 +104,8 @@ void AutoCompletePlugin::onRegister( UICodeEditor* editor ) {
listeners.push_back(
editor->addEventListener( Event::OnDocumentLoaded, [&, editor]( const Event* ) {
mDirty = true;
mDocs.insert( editor->getDocumentRef().get() );
mEditorDocs[editor] = editor->getDocumentRef().get();
tryRequestCapabilities( editor );
} ) );