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

Method evaluate

contextKeyExpr/src/contextkey.ts:762–766  ·  view source on GitHub ↗
(context: IContext)

Source from the content-addressed store, hash-verified

760 }
761
762 public evaluate(context: IContext): boolean {
763 // Intentional ==
764 // eslint-disable-next-line eqeqeq
765 return (Number(context.getValue(this.key)) <= this.value);
766 }
767
768 public serialize(): string {
769 return this.key + ' == \'' + this.value + '\'';

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected