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

Method equals

contextKeyExpr/src/contextkey.ts:346–351  ·  view source on GitHub ↗
(other: ContextKeyExpression)

Source from the content-addressed store, hash-verified

344 }
345
346 public equals(other: ContextKeyExpression): boolean {
347 if (other.type === this.type) {
348 return (this.key === other.key);
349 }
350 return false;
351 }
352
353 public evaluate(context: IContext): boolean {
354 return (!!context.getValue(this.key));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected