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

Method create

contextKeyExpr/src/contextkey.ts:320–326  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

318
319export class ContextKeyDefinedExpr implements IContextKeyExpression {
320 public static create(key: string): ContextKeyExpression {
321 const staticValue = STATIC_VALUES.get(key);
322 if (typeof staticValue === 'boolean') {
323 return staticValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE;
324 }
325 return new ContextKeyDefinedExpr(key);
326 }
327
328 public readonly type = ContextKeyExprType.Defined;
329

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected