public TypeScriptCompletionProcessor(ITextEditor editor, ContentAssistant assistant, String partition) { super(editor, assistant, partition); this.editor = editor; assistant.setSorter(new ICompletionProposalSorter() { @Override public int compare(ICompletionProposal p1, ICompletionProposal p2) { return RELEVANCE_SORTER.compare(p1, p2); } }); }