forked from qt-creator/qt-creator
Python: remove python specific language client settings
Change-Id: Ic993d525f29c1925f7e64dfc6f5e053234fb4904 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -108,7 +108,19 @@ static QWidget *createEditorWidget()
|
||||
class PythonDocument : public TextEditor::TextDocument
|
||||
{
|
||||
public:
|
||||
PythonDocument() : TextEditor::TextDocument(Constants::C_PYTHONEDITOR_ID) {}
|
||||
PythonDocument() : TextEditor::TextDocument(Constants::C_PYTHONEDITOR_ID)
|
||||
{
|
||||
connect(PythonSettings::instance(),
|
||||
&PythonSettings::pylsEnabledChanged,
|
||||
this,
|
||||
[this](const bool enabled) {
|
||||
if (!enabled)
|
||||
return;
|
||||
const Utils::FilePath &python = detectPython(filePath());
|
||||
if (python.exists())
|
||||
PyLSConfigureAssistant::openDocumentWithPython(python, this);
|
||||
});
|
||||
}
|
||||
|
||||
void setFilePath(const Utils::FilePath &filePath) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user