MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / contextMatchesRules

Function contextMatchesRules

contextKeyExpr/src/contextkey.ts:1269–1274  ·  view source on GitHub ↗
(context: IContext, rules: ContextKeyExpression | null | undefined)

Source from the content-addressed store, hash-verified

1267
1268
1269export function contextMatchesRules(context: IContext, rules: ContextKeyExpression | null | undefined): boolean {
1270 if (!rules) {
1271 return true;
1272 }
1273 return rules.evaluate(context);
1274}

Callers 1

_iterateContributeMethod · 0.90

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected