Skip to content

Commit

Permalink
Do not trimForExclusions (fixes #29520) (#29632)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti authored and bpasero committed Jun 27, 2017
1 parent 74abb32 commit 2cdeb68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/vs/base/common/glob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ export type ParsedPattern = (path: string, basename?: string) => boolean;
export type ParsedExpression = (path: string, basename?: string, siblingsFn?: () => string[] | TPromise<string[]>) => string | TPromise<string> /* the matching pattern */;

export interface IGlobOptions {
/**
* Simplify patterns for use as exclusion filters during tree traversal to skip entire subtrees. Cannot be used outside of a tree traversal.
*/
trimForExclusions?: boolean;
}

Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/services/history/browser/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export abstract class BaseHistoryService {
if (!this.mapRootToExpression.has(root.toString()) || !objects.equals(this.mapRootToExpression.get(root.toString()), rootExcludes)) {
changed = true;

this.mapRootToExcludes.set(root.toString(), parse(rootExcludes, { trimForExclusions: true }));
this.mapRootToExcludes.set(root.toString(), parse(rootExcludes));
this.mapRootToExpression.set(root.toString(), objects.clone(rootExcludes));
}
});
Expand All @@ -135,7 +135,7 @@ export abstract class BaseHistoryService {
if (!this.mapRootToExpression.has(null) || !objects.equals(this.mapRootToExpression.get(null), globalExcludes)) {
changed = true;

this.mapRootToExcludes.set(null, parse(globalExcludes, { trimForExclusions: true }));
this.mapRootToExcludes.set(null, parse(globalExcludes));
this.mapRootToExpression.set(null, objects.clone(globalExcludes));
}

Expand Down

0 comments on commit 2cdeb68

Please sign in to comment.