Python: remove python specific language client settings

Change-Id: Ic993d525f29c1925f7e64dfc6f5e053234fb4904
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-06-09 13:41:41 +02:00
parent ed22ef7854
commit 4c20a880e6
6 changed files with 122 additions and 310 deletions

View File

@@ -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
{