MCPcopy Create free account
hub / github.com/hediet/vscode-debug-visualizer / getDebugAdapterConfig

Method getDebugAdapterConfig

extension/src/Config.ts:67–83  ·  view source on GitHub ↗
(
		debugAdapterType: string
	)

Source from the content-addressed store, hash-verified

65 }
66
67 public getDebugAdapterConfig(
68 debugAdapterType: string
69 ): DebugAdapterConfig | undefined {
70 const c = this._debugAdapterConfigs.get()[debugAdapterType];
71 if (!c) {
72 return undefined;
73 }
74
75 return {
76 context: c.context || "watch",
77 getFinalExpression: ({ expression, preferredExtractorId }) =>
78 evaluateTemplate(c.expressionTemplate || "${expr}", {
79 expr: expression,
80 preferredDataExtractorId: preferredExtractorId || "",
81 }),
82 };
83 }
84}
85
86type DebugAdapterConfigs = {

Callers 1

createBackendMethod · 0.80

Calls 2

evaluateTemplateFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected