Skip to content

Commit 88f1495

Browse files
Fix Debug: Open Configurations showing empty dropdown.
Signed-off-by: Esther Perelman <esther.perelman@sap.com>
1 parent 9ac5ff0 commit 88f1495

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/debug/src/browser/debug-configuration-manager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ export class DebugConfigurationManager {
317317
}
318318
const { languageId } = widget.editor.document;
319319
const debuggers = await this.debug.getDebuggersForLanguage(languageId);
320+
if (debuggers.length === 0) {
321+
return undefined;
322+
}
320323
const items: Array<QuickPickValue<string>> = debuggers.map(({ label, type }) => ({ label, value: type }));
321324
const selectedItem = await this.quickPickService.show(items, { placeholder: 'Select Environment' });
322325
return selectedItem?.value;

0 commit comments

Comments
 (0)