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

Method evaluate

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

Source from the content-addressed store, hash-verified

417 }
418
419 public evaluate(context: IContext): boolean {
420 // Intentional ==
421 // eslint-disable-next-line eqeqeq
422 return (context.getValue(this.key) == this.value);
423 }
424
425 public serialize(): string {
426 return this.key + ' == \'' + this.value + '\'';

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected