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

Method evaluate

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

Source from the content-addressed store, hash-verified

881 }
882
883 public evaluate(context: IContext): boolean {
884 let value = context.getValue<any>(this.key);
885 return this.regexp ? this.regexp.test(value) : false;
886 }
887
888 public serialize(): string {
889 const value = this.regexp

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected