Skip to content
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

Keybinding for Show SQL Pane #9750

Merged
merged 23 commits into from
May 14, 2020
Merged

Keybinding for Show SQL Pane #9750

merged 23 commits into from
May 14, 2020

Conversation

smartguest
Copy link
Contributor

Added a keybinding in the edit data contribution file that toggles show SQL pane.
This PR fixes #3763

@github-actions
Copy link

Coverage Status

Coverage remained the same at 31.619% when pulling 295ac36 on alex/keybinding-showsqlpane into dd132a2 on master.

@smartguest
Copy link
Contributor Author

Option to always show SQL Pane added as requested by gregveres in #3763

Copy link
Member

@kburtram kburtram left a comment

Choose a reason for hiding this comment

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

I'm not sure where the requirement for the user setting originated from, though I'm not necessarily opposed to it, I just don't see it discussed in the bug or recall discussing it elsewhere? Though the default should be false. Also, I think the keyboarding you choose conflicts with existing keyboard shortcut for a common action.

@@ -18,6 +24,20 @@ const editDataEditorDescriptor = new EditorDescriptor(
'EditData'
);

const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigExtensions.Configuration);
Copy link
Member

Choose a reason for hiding this comment

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

why are we adding this setting? i.e. has this been requested by a customer?

Copy link
Contributor Author

@smartguest smartguest Apr 3, 2020

Choose a reason for hiding this comment

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

Yes, a customer requested this feature should be added
#3763 (comment)

'properties': {
'editor.showEditDataSqlPaneOnStartup': {
'type': 'boolean',
'default': true,
Copy link
Member

Choose a reason for hiding this comment

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

should the default be false to main compatibility with current behavior?

id: editDataActions.ShowQueryPaneAction.ID,
weight: KeybindingWeight.EditorContrib,
when: undefined,
primary: KeyMod.CtrlCmd | KeyCode.US_QUOTE,
Copy link
Member

Choose a reason for hiding this comment

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

is this the keybinding currently used to show the terminal? I suggest we leave the keybinding unassigned by default and let user configure it themselves since we are running out of available keyboard shortcuts.

@adsbot adsbot bot added the Stale PR label Apr 13, 2020
@smartguest smartguest merged commit 8f7861d into master May 14, 2020
@adsbot adsbot bot removed the Stale PR label May 14, 2020
@Charles-Gagnon Charles-Gagnon deleted the alex/keybinding-showsqlpane branch June 11, 2021 22:21
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.

Create a Keybinding for "Show SQL Pane" when Editing Data
3 participants