Skip to content

Commit

Permalink
Fix #29660 - 'src' in the search 'include' field should be treated as…
Browse files Browse the repository at this point in the history
… '**/src/**' now
  • Loading branch information
roblourens committed Jul 31, 2017
1 parent 8eb1c45 commit adfbd11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/search/common/queryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class QueryBuilder {
p = '*' + p; // convert ".js" to "*.js"
}

return strings.format('{{0}/**,**/{0}}', p); // convert foo to {foo/**,**/foo} to cover files and folders
return strings.format('{**/{0}/**,**/{0}}', p); // convert foo to {foo/**,**/foo} to cover files and folders
});

const result: ISearchPathsResult = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ function cleanUndefinedQueryValues(q: any): void {
}

function globalGlob(str: string): string {
return `{${str}/**,**/${str}}`;
return `{**/${str}/**,**/${str}}`;
}

function patternsToIExpression(...patterns: string[]): IExpression {
Expand Down

0 comments on commit adfbd11

Please sign in to comment.