mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 18:15:23 +02:00
Turn off QML content assist for now.
It's throwing an exception in acorn.js. We need to revisit this anyway in light of the LSP. Change-Id: Ia6fd9d7bdd5d5133711947d37c412996ba23f19a
This commit is contained in:
parent
05dde8b06c
commit
56d950b863
1 changed files with 3 additions and 8 deletions
|
@ -7,23 +7,15 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.qt.ui.editor;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Collection;
|
||||
|
||||
import javax.script.ScriptException;
|
||||
|
||||
import org.eclipse.cdt.internal.qt.ui.Activator;
|
||||
import org.eclipse.cdt.qt.core.IQMLAnalyzer;
|
||||
import org.eclipse.cdt.qt.core.QMLTernCompletion;
|
||||
import org.eclipse.jface.text.BadLocationException;
|
||||
import org.eclipse.jface.text.IDocument;
|
||||
import org.eclipse.jface.text.ITextViewer;
|
||||
import org.eclipse.jface.text.contentassist.CompletionProposal;
|
||||
import org.eclipse.jface.text.contentassist.ICompletionProposal;
|
||||
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
|
||||
import org.eclipse.jface.text.contentassist.IContextInformation;
|
||||
import org.eclipse.jface.text.contentassist.IContextInformationValidator;
|
||||
import org.eclipse.ui.IFileEditorInput;
|
||||
|
||||
public class QMLContentAssistProcessor implements IContentAssistProcessor {
|
||||
private static final IContextInformation[] NO_CONTEXTS = {};
|
||||
|
@ -38,6 +30,7 @@ public class QMLContentAssistProcessor implements IContentAssistProcessor {
|
|||
|
||||
@Override
|
||||
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
|
||||
/*
|
||||
IDocument document = viewer.getDocument();
|
||||
String prefix = lastWord(document, offset);
|
||||
// Save the file
|
||||
|
@ -65,6 +58,8 @@ public class QMLContentAssistProcessor implements IContentAssistProcessor {
|
|||
} catch (NoSuchMethodException | ScriptException e) {
|
||||
Activator.log(e);
|
||||
}
|
||||
*/
|
||||
|
||||
return NO_COMPLETIONS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue