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

Method create

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

Source from the content-addressed store, hash-verified

955export class ContextKeyAndExpr implements IContextKeyExpression {
956
957 public static create(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression | undefined {
958 const expr = ContextKeyAndExpr._normalizeArr(_expr);
959 if (expr.length === 0) {
960 return undefined;
961 }
962
963 if (expr.length === 1) {
964 return expr[0];
965 }
966
967 return new ContextKeyAndExpr(expr);
968 }
969
970 public readonly type = ContextKeyExprType.And;
971

Callers

nothing calls this directly

Calls 1

_normalizeArrMethod · 0.45

Tested by

no test coverage detected