private transformCodeActionTitle()

in package/src/languageServiceManager/kustoLanguageService.ts [708:727]


    private transformCodeActionTitle(currentActionTitle: string, parentActionTitle: string | null) {
        let title = currentActionTitle;
        switch (title) {
            case 'Apply':
                title = 'Apply once';
                break;
            case 'Fix All':
                title = 'Apply to all';
                break;
            case 'Extract Value':
                title = 'Extract value';
                break;
        }
        if (parentActionTitle) {
            // We want to lower case the first character since it's going to be in brackets
            const parentActionTitleLowerCased = parentActionTitle.charAt(0).toUpperCase() + parentActionTitle.slice(1);
            title = `${title} (${parentActionTitleLowerCased})`;
        }
        return title;
    }