forked from qt-creator/qt-creator
Python: Move PyLSConfigureAssistant connection to the plugin
Change-Id: I2d3aecd10d8da7e7272ebca61c0fbeacbc257bd5 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -53,9 +53,6 @@ PythonEditorFactory::PythonEditorFactory()
|
||||
setCommentDefinition(Utils::CommentDefinition::HashStyle);
|
||||
setParenthesesMatchingEnabled(true);
|
||||
setCodeFoldingSupported(true);
|
||||
|
||||
connect(Core::EditorManager::instance(), &Core::EditorManager::documentOpened,
|
||||
this, &PyLSConfigureAssistant::documentOpened);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -444,6 +444,7 @@ PyLSConfigureAssistant::PyLSConfigureAssistant(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
Core::EditorManager::instance();
|
||||
|
||||
connect(Core::EditorManager::instance(),
|
||||
&Core::EditorManager::documentClosed,
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user