mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
fix #63028
This commit is contained in:
@@ -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 <IDebugAdapterExecutable>{
|
||||
type: 'executable',
|
||||
@@ -625,6 +625,8 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape {
|
||||
type: 'implementation',
|
||||
implementation: x.implementation
|
||||
};
|
||||
} else if (typeof (<any>x).type === 'string') {
|
||||
return <IAdapterDescriptor>x;
|
||||
} else {
|
||||
throw new Error('unexpected type');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user