mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
PR 9881 - Final steps to enable search scope properly on the project scope. Also fixed up varargs in the DOM contributor to eliminate duplicates.
This commit is contained in:
parent
4f1d0f9247
commit
a843eb1350
2 changed files with 3 additions and 4 deletions
|
@ -49,8 +49,7 @@ public class SearchCompletionContributor implements ICompletionContributor {
|
|||
|
||||
// Create search scope
|
||||
ICElement[] projects = new ICElement[] { workingCopy.getCProject() };
|
||||
//ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
|
||||
ICSearchScope scope = SearchEngine.createWorkspaceScope();
|
||||
ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
|
||||
|
||||
// Create the pattern
|
||||
ICSearchPattern pattern = SearchEngine.createSearchPattern(prefix + "*", ICSearchConstants.UNKNOWN_SEARCH_FOR, ICSearchConstants.ALL_OCCURRENCES, true); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue