mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -05:00
Merge from vscode fc10e26ea50f82cdd84e9141491357922e6f5fba (#4639)
This commit is contained in:
@@ -217,7 +217,15 @@ export class FocusSessionActionItem extends SelectActionItem {
|
||||
private update() {
|
||||
const session = this.debugService.getViewModel().focusedSession;
|
||||
const sessions = this.getSessions();
|
||||
const names = sessions.map(s => s.getLabel());
|
||||
const names = sessions.map(s => {
|
||||
const label = s.getLabel();
|
||||
if (s.parentSession) {
|
||||
// Indent child sessions so they look like children
|
||||
return `\u00A0\u00A0${label}`;
|
||||
}
|
||||
|
||||
return label;
|
||||
});
|
||||
this.setOptions(names.map(data => <ISelectOptionItem>{ text: data }), session ? sessions.indexOf(session) : undefined);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user