mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
Merge from vscode 966b87dd4013be1a9c06e2b8334522ec61905cc2 (#4696)
This commit is contained in:
@@ -778,6 +778,13 @@ export class DebugModel implements IDebugModel {
|
||||
return 'root';
|
||||
}
|
||||
|
||||
getSession(sessionId: string | undefined, includeInactive = false): IDebugSession | undefined {
|
||||
if (sessionId) {
|
||||
return this.getSessions(includeInactive).filter(s => s.getId() === sessionId).pop();
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
getSessions(includeInactive = false): IDebugSession[] {
|
||||
// By default do not return inactive sesions.
|
||||
// However we are still holding onto inactive sessions due to repl and debug service session revival (eh scenario)
|
||||
|
||||
Reference in New Issue
Block a user