Skip to content

CB-5832 Add SQL editor shortcut to save script#3167

Merged
Wroud merged 10 commits intodevelfrom
CB-5832-SQL-Editor-Shortcut-to-Save-script
Jan 7, 2025
Merged

CB-5832 Add SQL editor shortcut to save script#3167
Wroud merged 10 commits intodevelfrom
CB-5832-SQL-Editor-Shortcut-to-Save-script

Conversation

@SychevAndrey
Copy link
Copy Markdown
Contributor

Screenshot 2024-12-30 at 11 02 47 Screenshot 2024-12-30 at 11 03 01

['sql_editor_shortcut_execute_script', 'Выполнить скрипт'],
['sql_editor_shortcut_show_execution_plan', 'Показать план выполнения'],
['sql_editor_shortcut_format', 'Форматировать скрипт'],
['sql_editor_shortcut_save_as_script', 'Сохранить скрипт'],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сохранить как скрипт

},
});

this.navigationTabsService.registerAction(ACTION_SAVE_AS_SCRIPT);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use SqlEditorView instead

});
}

private async saveAsScriptHandler(context: any, action: any) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add types to context arg. Also no need to check and pass action type as we already know it from a method name. Check it only in handler above

@Wroud Wroud merged commit de6f9b7 into devel Jan 7, 2025
@Wroud Wroud deleted the CB-5832-SQL-Editor-Shortcut-to-Save-script branch January 7, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants