in package/src/languageServiceManager/kustoLanguageService.ts [729:741]
private flattenCodeActions(codeAction: k2.CodeAction, parentTitle: string | null): k2.ApplyAction[] {
const applyActions: k2.ApplyAction[] = [];
if (codeAction instanceof k2.ApplyAction) {
codeAction.Title = this.transformCodeActionTitle(codeAction.Title, parentTitle);
applyActions.push(codeAction);
} else if (codeAction instanceof k2.MenuAction) {
const nestedCodeActions = this.toArray(codeAction.Actions);
for (let i = 0; i < nestedCodeActions.length; i++) {
applyActions.push(...this.flattenCodeActions(nestedCodeActions[i], codeAction.Title));
}
}
return applyActions;
}