Skip to content

Commit 56a7682

Browse files
Copilotgarrytrinder
andcommitted
Add empty children check for plugin node safety
Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com>
1 parent 89c34f4 commit 56a7682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/code-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ function registerInvalidConfigSectionFixes(context: vscode.ExtensionContext): vo
798798
}
799799

800800
const selectedPlugin = availablePlugins.find(p => p.name === selected);
801-
if (!selectedPlugin) {
801+
if (!selectedPlugin || selectedPlugin.node.children.length === 0) {
802802
return;
803803
}
804804

0 commit comments

Comments
 (0)