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

Method create

contextKeyExpr/src/contextkey.ts:1087–1098  ·  view source on GitHub ↗
(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>)

Source from the content-addressed store, hash-verified

1085export class ContextKeyOrExpr implements IContextKeyExpression {
1086
1087 public static create(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression | undefined {
1088 const expr = ContextKeyOrExpr._normalizeArr(_expr);
1089 if (expr.length === 0) {
1090 return undefined;
1091 }
1092
1093 if (expr.length === 1) {
1094 return expr[0];
1095 }
1096
1097 return new ContextKeyOrExpr(expr);
1098 }
1099
1100 public readonly type = ContextKeyExprType.Or;
1101

Callers 15

envFunction · 0.45
hasFunction · 0.45
equalsFunction · 0.45
notEqualsFunction · 0.45
regexFunction · 0.45
notFunction · 0.45
andFunction · 0.45
orFunction · 0.45
greaterOrEqualsFunction · 0.45
lessOrEqualsFunction · 0.45
greaterFunction · 0.45
lessFunction · 0.45

Calls 1

_normalizeArrMethod · 0.45

Tested by

no test coverage detected