support for debugAdapterExecutable; fixes #33801

This commit is contained in:
Andre Weinand
2018-01-29 14:27:48 +01:00
parent c0a5a09ab4
commit 81142e2cb5
10 changed files with 96 additions and 9 deletions

View File

@@ -148,7 +148,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
});
}
public $registerDebugConfigurationProvider(debugType: string, hasProvide: boolean, hasResolve: boolean, handle: number): TPromise<void> {
public $registerDebugConfigurationProvider(debugType: string, hasProvide: boolean, hasResolve: boolean, hasDebugAdapterExecutable: boolean, handle: number): TPromise<void> {
const provider = <IDebugConfigurationProvider>{
type: debugType
@@ -163,6 +163,11 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
return this._proxy.$resolveDebugConfiguration(handle, folder, debugConfiguration);
};
}
if (hasDebugAdapterExecutable) {
provider.debugAdapterExecutable = (folder) => {
return this._proxy.$debugAdapterExecutable(handle, folder);
};
}
this.debugService.getConfigurationManager().registerDebugConfigurationProvider(handle, provider);
return TPromise.wrap<void>(undefined);