Commit ace138d3 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ completion refinements, #122

parent 5606484a
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -388,8 +388,8 @@ public class TDLtxProposalProvider extends AbstractTDLtxProposalProvider {
					if (ne instanceof CollectionDataType) {
						suffix = "[ ]";
					}
					acceptor.accept(createCompletionProposal(suffix, new StyledString(suffix).append(" : new anonymous instance of type "+ne.getName(), StyledString.DECORATIONS_STYLER), getImage(ne), 1100, "", context));
					acceptor.accept(createCompletionProposal(prefix+ne.getName()+suffix, new StyledString(prefix+ne.getName()+suffix).append(" : new instance of type", StyledString.DECORATIONS_STYLER), getImage(ne), 1000, "", context));
					acceptor.accept(createCompletionProposal(suffix, new StyledString(suffix).append(" : new anonymous instance of type "+ne.getName(), StyledString.DECORATIONS_STYLER), getImage(ne), 1200, "", context));
					acceptor.accept(createCompletionProposal(prefix+ne.getName()+suffix, new StyledString(prefix+ne.getName()+suffix).append(" : new instance of type", StyledString.DECORATIONS_STYLER), getImage(ne), 1100, "", context));
				}
			} else if (ne instanceof Function && ((Function) ne).getReturnType().conformsTo(type)) {
				accept = true;