mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
TypeError: expressionForRoot is not a function (fixes #30034)
This commit is contained in:
@@ -148,7 +148,13 @@ export class ResourceGlobMatcher {
|
||||
|
||||
public matches(resource: URI): boolean {
|
||||
const root = this.contextService.getRoot(resource);
|
||||
const expressionForRoot = this.mapRootToParsedExpression.get(root ? root.toString() : ResourceGlobMatcher.NO_ROOT);
|
||||
|
||||
let expressionForRoot: ParsedExpression;
|
||||
if (root && this.mapRootToParsedExpression.has(root.toString())) {
|
||||
expressionForRoot = this.mapRootToParsedExpression.get(root.toString());
|
||||
} else {
|
||||
expressionForRoot = this.mapRootToParsedExpression.get(ResourceGlobMatcher.NO_ROOT);
|
||||
}
|
||||
|
||||
// If the resource if from a workspace, convert its absolute path to a relative
|
||||
// path so that glob patterns have a higher probability to match. For example
|
||||
|
||||
Reference in New Issue
Block a user