fix: inherit the compound root for all children of debug sessions

Fixes https://github.com/microsoft/vscode/issues/103705
This commit is contained in:
Connor Peet
2020-07-31 12:30:48 -07:00
parent 348a4ce2d8
commit 5b5bb81e2c
4 changed files with 15 additions and 2 deletions

View File

@@ -228,11 +228,13 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
public $startDebugging(folder: UriComponents | undefined, nameOrConfig: string | IDebugConfiguration, options: IStartDebuggingOptions): Promise<boolean> {
const folderUri = folder ? uri.revive(folder) : undefined;
const launch = this.debugService.getConfigurationManager().getLaunch(folderUri);
const parentSession = this.getSession(options.parentSessionID);
const debugOptions: IDebugSessionOptions = {
noDebug: options.noDebug,
parentSession: this.getSession(options.parentSessionID),
parentSession,
repl: options.repl,
compact: options.compact
compact: options.compact,
compoundRoot: parentSession?.compoundRoot
};
return this.debugService.startDebugging(launch, nameOrConfig, debugOptions).then(success => {
return success;