Commit 1670f5da authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Made the completion less annoying.

Don't trigger again the completion when completing identifiers.
parent a794154d
......@@ -373,6 +373,11 @@ bool CodeCompletion::partiallyComplete(const QList<TextEditor::CompletionItem> &
return ICompletionCollector::partiallyComplete(completionItems);
}
bool CodeCompletion::shouldRestartCompletion()
{
return m_restartCompletion;
}
void CodeCompletion::cleanup()
{
m_editor = 0;
......
......@@ -86,6 +86,8 @@ public:
*/
virtual bool partiallyComplete(const QList<TextEditor::CompletionItem> &completionItems);
virtual bool shouldRestartCompletion();
/* Called when it's safe to clean up the completion items.
*/
virtual void cleanup();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment