Skip to content
Snippets Groups Projects
Commit 3ee6a03f authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Disabled snippet completion.

parent e2eb01cc
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ using namespace QmlJSEditor;
using namespace QmlJSEditor::Internal;
using namespace QmlJS;
// #define QML_WITH_SNIPPETS
// Temporary workaround until we have proper icons for QML completion items
static QIcon iconForColor(const QColor &color)
......@@ -733,10 +734,12 @@ int QmlCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
return -1;
}
#ifdef QML_WITH_SNIPPETS
if (isQmlFile && (completionOperator.isNull() || completionOperator.isSpace() || isDelimiter(completionOperator))) {
updateSnippets();
m_completions.append(m_snippets);
}
#endif
if (! m_completions.isEmpty())
return m_startPosition;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment