Skip to content

Commit 37f523a

Browse files
Fix SQL notebook execute cell keyboard shortcut (#22094)
* Fix SQL notebook execute shortcut * Fix SQL notebook execution shortcut scope * Revert "Fix SQL notebook execution shortcut scope" This reverts commit 7460d10. * Fix SQL notebook execution shortcut scope to SQL kernel * Revert "Fix SQL notebook execution shortcut scope to SQL kernel" This reverts commit cf14691. * Fix SQL notebook cell execution shortcut
1 parent 196dcae commit 37f523a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

extensions/database-management-keymap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"command": "notebook.cell.execute",
5252
"key": "f5",
5353
"mac": "f5",
54-
"when": "notebookCellListFocused && notebookType == 'sql'"
54+
"when": "notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0"
5555
},
5656
{
5757
"command": "mssql.runCurrentStatement",

extensions/mssql/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,12 @@
16311631
"mac": "cmd+shift+e",
16321632
"when": "editorTextFocus && editorLangId == 'sql' && !notebookEditorFocused"
16331633
},
1634+
{
1635+
"command": "notebook.cell.execute",
1636+
"key": "ctrl+shift+e",
1637+
"mac": "cmd+shift+e",
1638+
"when": "notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0"
1639+
},
16341640
{
16351641
"command": "mssql.connect",
16361642
"key": "ctrl+shift+c",

0 commit comments

Comments
 (0)