forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.11'
Change-Id: I66389d88d5a60c6c86547b93cca945af42aa807b
This commit is contained in:
@@ -294,23 +294,10 @@ void PythonRunConfiguration::updateLanguageServer()
|
||||
|
||||
const FilePath python(FilePath::fromUserInput(interpreter()));
|
||||
|
||||
if (const StdIOSettings *lsSetting = languageServerForPython(python)) {
|
||||
if (Client *client = LanguageClientManager::clientForSetting(lsSetting).value(0)) {
|
||||
for (FilePath &file : project()->files(Project::AllFiles)) {
|
||||
if (auto document = TextEditor::TextDocument::textDocumentForFilePath(file)) {
|
||||
if (document->mimeType() == Constants::C_PY_MIMETYPE) {
|
||||
resetEditorInfoBar(document);
|
||||
LanguageClientManager::reOpenDocumentWithClient(document, client);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (FilePath &file : project()->files(Project::AllFiles)) {
|
||||
if (auto document = TextEditor::TextDocument::textDocumentForFilePath(file)) {
|
||||
if (document->mimeType() == Constants::C_PY_MIMETYPE)
|
||||
updateEditorInfoBar(python, document);
|
||||
PyLSConfigureAssistant::instance()->openDocumentWithPython(python, document);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user