Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Please let CC to support the global namepace
blueshake:
yes,only abc should be keeped.so the cc will work like global search.
blueshake:
@Loaden
can you try this patch and give me feedback?
Is this issue still there?
--- Quote ---But there is a small problem, see the picture prompts.
--- End quote ---
patch:
--- Code: ---Index: src/plugins/codecompletion/nativeparser.cpp
===================================================================
--- src/plugins/codecompletion/nativeparser.cpp (revision 6089)
+++ src/plugins/codecompletion/nativeparser.cpp (working copy)
@@ -1638,9 +1638,9 @@
}
Manager::Get()->GetLogManager()->DebugLog(F(_T("BreakUpComponents() Found component: '%s' (%s)"), tok.wx_str(), tokenTypeString.wx_str()));
}
+ if (!tok.IsEmpty() || (tokenType == pttSearchText && components.size() != 0))
+ components.push(pc);
- components.push(pc);
-
if (tokenType == pttSearchText)
break;
}
--- End code ---
Loaden:
--- Quote from: blueshake on January 18, 2010, 04:20:51 am ---@Loaden
can you try this patch and give me feedback?
Is this issue still there?
--- Quote ---But there is a small problem, see the picture prompts.
--- End quote ---
patch:
--- Code: ---Index: src/plugins/codecompletion/nativeparser.cpp
===================================================================
--- src/plugins/codecompletion/nativeparser.cpp (revision 6089)
+++ src/plugins/codecompletion/nativeparser.cpp (working copy)
@@ -1638,9 +1638,9 @@
}
Manager::Get()->GetLogManager()->DebugLog(F(_T("BreakUpComponents() Found component: '%s' (%s)"), tok.wx_str(), tokenTypeString.wx_str()));
}
+ if (!tok.IsEmpty() || (tokenType == pttSearchText && components.size() != 0))
+ components.push(pc);
- components.push(pc);
-
if (tokenType == pttSearchText)
break;
}
--- End code ---
--- End quote ---
It's OK now! perfect!
[attachment deleted by admin]
blueshake:
--- Quote from: blueshake on January 18, 2010, 04:20:51 am ---@Loaden
can you try this patch and give me feedback?
Is this issue still there?
--- Quote ---But there is a small problem, see the picture prompts.
--- End quote ---
patch:
--- Code: ---Index: src/plugins/codecompletion/nativeparser.cpp
===================================================================
--- src/plugins/codecompletion/nativeparser.cpp (revision 6089)
+++ src/plugins/codecompletion/nativeparser.cpp (working copy)
@@ -1638,9 +1638,9 @@
}
Manager::Get()->GetLogManager()->DebugLog(F(_T("BreakUpComponents() Found component: '%s' (%s)"), tok.wx_str(), tokenTypeString.wx_str()));
}
+ if (!tok.IsEmpty() || (tokenType == pttSearchText && components.size() != 0))
+ components.push(pc);
- components.push(pc);
-
if (tokenType == pttSearchText)
break;
}
--- End code ---
--- End quote ---
@morten
seems you don't apply this patch correctly,so in current cc, when you type "(" ,cc will give a lot of wrong tips.can you check this??
MortenMacFly:
--- Quote from: blueshake on May 01, 2010, 06:15:57 am ---seems you don't apply this patch correctly,so in current cc, when you type "(" ,cc will give a lot of wrong tips.can you check this??
--- End quote ---
Work fine here...?! What exactly do you mean? Remember that this is just for global namespace. IIRC we had discussed this. So that's why it is as it is now.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version