Python: Move PyLSConfigureAssistant connection to the plugin

Change-Id: I2d3aecd10d8da7e7272ebca61c0fbeacbc257bd5
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2020-02-11 17:53:22 +01:00
parent eed49de35b
commit 783967f550
3 changed files with 5 additions and 3 deletions

View File

@@ -29,6 +29,7 @@
#include "pythonproject.h"
#include "pythonsettings.h"
#include "pythonrunconfiguration.h"
#include "pythonutils.h"
#include <coreplugin/fileiconprovider.h>
@@ -105,6 +106,9 @@ void PythonPlugin::extensionsInitialized()
Core::FileIconProvider::registerIconOverlayForSuffix(imageFile, "py");
TaskHub::addCategory(PythonErrorTaskCategory, "Python", true);
connect(Core::EditorManager::instance(), &Core::EditorManager::documentOpened,
this, &PyLSConfigureAssistant::documentOpened);
}
} // namespace Internal