Commit 42e8786a authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

content assist: fixing setverdict prefix handling, fixing variable offset


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent 840c4441
...@@ -290,7 +290,7 @@ public abstract class ProposalContext { ...@@ -290,7 +290,7 @@ public abstract class ProposalContext {
propCollector.addProposal(failProposal); propCollector.addProposal(failProposal);
propCollector.addProposal(errorProposal); propCollector.addProposal(errorProposal);
addItems(ttype, propCollector, excludeName, replacementLength, replacementLength, prefix); addItems(ttype, propCollector, excludeName, replacementOffset, replacementLength, prefix);
break; break;
default: default:
} }
......
...@@ -24,6 +24,7 @@ public class SetverdictContext extends ProposalContext { ...@@ -24,6 +24,7 @@ public class SetverdictContext extends ProposalContext {
@Override @Override
public void getProposals(ProposalCollector propCollector) { public void getProposals(ProposalCollector propCollector) {
addItemsByType(null, Type_type.TYPE_VERDICT, propCollector, null, null); String prefix = getPrefix();
addItemsByType(null, Type_type.TYPE_VERDICT, propCollector, prefix, null);
} }
} }
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