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

Method equals

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

Source from the content-addressed store, hash-verified

872 }
873
874 public equals(other: ContextKeyExpression): boolean {
875 if (other.type === this.type) {
876 const thisSource = this.regexp ? this.regexp.source : '';
877 const otherSource = other.regexp ? other.regexp.source : '';
878 return (this.key === other.key && thisSource === otherSource);
879 }
880 return false;
881 }
882
883 public evaluate(context: IContext): boolean {
884 let value = context.getValue<any>(this.key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected