mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
add the value part of the tootip for macros.
This commit is contained in:
parent
93b627eabc
commit
8a3a52b54a
1 changed files with 2 additions and 1 deletions
|
@ -108,6 +108,7 @@ public class MakefileCompletionProcessor implements IContentAssistProcessor {
|
||||||
}
|
}
|
||||||
if (name != null && name.startsWith(wordPart.getString())) {
|
if (name != null && name.startsWith(wordPart.getString())) {
|
||||||
IContextInformation info = new ContextInformation(name, infoString);
|
IContextInformation info = new ContextInformation(name, infoString);
|
||||||
|
String displayString = (name.equals(infoString) ? name : name + " - " + infoString);
|
||||||
ICompletionProposal result =
|
ICompletionProposal result =
|
||||||
new CompletionProposal(
|
new CompletionProposal(
|
||||||
name,
|
name,
|
||||||
|
@ -115,7 +116,7 @@ public class MakefileCompletionProcessor implements IContentAssistProcessor {
|
||||||
wordPart.getString().length(),
|
wordPart.getString().length(),
|
||||||
name.length(),
|
name.length(),
|
||||||
image,
|
image,
|
||||||
name,
|
displayString,
|
||||||
info,
|
info,
|
||||||
infoString);
|
infoString);
|
||||||
proposalList.add(result);
|
proposalList.add(result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue