-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CB-5832 Add SQL editor shortcut to save script #3167
base: devel
Are you sure you want to change the base?
Conversation
SychevAndrey
commented
Dec 30, 2024
@@ -14,6 +21,7 @@ export default [ | |||
['sql_editor_shortcut_execute_script', 'Выполнить скрипт'], | |||
['sql_editor_shortcut_show_execution_plan', 'Показать план выполнения'], | |||
['sql_editor_shortcut_format', 'Форматировать скрипт'], | |||
['sql_editor_shortcut_save_as_script', 'Сохранить скрипт'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сохранить как скрипт
@@ -189,6 +93,8 @@ export class PluginBootstrap extends Bootstrap { | |||
}, | |||
}); | |||
|
|||
this.navigationTabsService.registerAction(ACTION_SAVE_AS_SCRIPT); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
…om:dbeaver/cloudbeaver into CB-5832-SQL-Editor-Shortcut-to-Save-script