mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for bug#44370
This commit is contained in:
parent
c52fc12cfd
commit
42bb6673a1
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
2004-04-16 Hoda Amer
|
||||
Fix for bug#44370 : [Content Assist] function-style macros have arguments
|
||||
|
||||
2004-04-16 David Inglis
|
||||
|
||||
Register our adapter factory though new extension point
|
||||
|
|
|
@ -280,7 +280,15 @@ public class ResultCollector extends CompletionRequestorAdaptor {
|
|||
// create proposal and add it to completions list
|
||||
CCompletionProposal proposal = createProposal(replaceString, displayString, infoString.toString(),
|
||||
arguments, image, completionStart, completionLength, relevance);
|
||||
|
||||
proposal.setTriggerCharacters(VAR_TRIGGERS);
|
||||
|
||||
boolean userMustCompleteParameters= (arguments != null && arguments.length() > 0);
|
||||
if (userMustCompleteParameters) {
|
||||
// set the cursor before the closing bracket
|
||||
proposal.setCursorPosition(replaceString.length() - 1);
|
||||
}
|
||||
|
||||
completions.add(proposal);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue