forked from qt-creator/qt-creator
Python: ensure opened file is inside a workspace
The Python language server seems to dislike files that are not part of a workspace resulting in very long lookup times for specific symbols. Fixes: QTCREATORBUG-26230 Fixes: QTCREATORBUG-24704 Fixes: QTCREATORBUG-24140 Change-Id: Iceb7a2b3d57aea6554225a74587f619e530e10c9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
||||
bool isSupportedDocument(const TextEditor::TextDocument *document) const;
|
||||
bool isSupportedFile(const Utils::FilePath &filePath, const QString &mimeType) const;
|
||||
bool isSupportedUri(const LanguageServerProtocol::DocumentUri &uri) const;
|
||||
void openDocument(TextEditor::TextDocument *document);
|
||||
virtual void openDocument(TextEditor::TextDocument *document);
|
||||
void closeDocument(TextEditor::TextDocument *document);
|
||||
void activateDocument(TextEditor::TextDocument *document);
|
||||
void deactivateDocument(TextEditor::TextDocument *document);
|
||||
|
||||
Reference in New Issue
Block a user