( debugAdapterType: string )
| 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 | |
| 86 | type DebugAdapterConfigs = { |
no test coverage detected