diff --git a/src/vs/workbench/api/node/extHostDebugService.ts b/src/vs/workbench/api/node/extHostDebugService.ts index d8b8a924a94..644fcc6cdd6 100644 --- a/src/vs/workbench/api/node/extHostDebugService.ts +++ b/src/vs/workbench/api/node/extHostDebugService.ts @@ -605,7 +605,7 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape { // private & dto helpers - private convertToDto(x: vscode.DebugAdapterDescriptor) { + private convertToDto(x: vscode.DebugAdapterDescriptor): IAdapterDescriptor { if (x instanceof DebugAdapterExecutable) { return { type: 'executable', @@ -625,6 +625,8 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape { type: 'implementation', implementation: x.implementation }; + } else if (typeof (x).type === 'string') { + return x; } else { throw new Error('unexpected type'); }