mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
support for debugAdapterExecutable; fixes #33801
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user