|
113 | 113 | "configuration": "./language/language-configuration.json" |
114 | 114 | } |
115 | 115 | ], |
| 116 | + "notebooks": [ |
| 117 | + { |
| 118 | + "type": "sqltools-notebook", |
| 119 | + "displayName": "SQLTools Notebook", |
| 120 | + "selector": [ |
| 121 | + { |
| 122 | + "filenamePattern": "*.sqlnb" |
| 123 | + } |
| 124 | + ] |
| 125 | + } |
| 126 | + ], |
116 | 127 | "grammars": [ |
117 | 128 | { |
118 | 129 | "language": "sql", |
|
121 | 132 | } |
122 | 133 | ], |
123 | 134 | "commands": [ |
| 135 | + { |
| 136 | + "title": "List Available SQLTools Commands", |
| 137 | + "command": "sqltools.notebook.listCommands", |
| 138 | + "category": "SQLTools Notebook Debug" |
| 139 | + }, |
| 140 | + { |
| 141 | + "title": "Select Connection for Cell", |
| 142 | + "command": "sqltools.notebook.selectCellConnection", |
| 143 | + "category": "SQLTools Notebook", |
| 144 | + "icon": { |
| 145 | + "light": "icons/connect-light.svg", |
| 146 | + "dark": "icons/connect-dark.svg" |
| 147 | + } |
| 148 | + }, |
| 149 | + { |
| 150 | + "title": "Clear Connection for Cell", |
| 151 | + "command": "sqltools.notebook.clearCellConnection", |
| 152 | + "category": "SQLTools Notebook", |
| 153 | + "icon": { |
| 154 | + "light": "icons/disconnect-light.svg", |
| 155 | + "dark": "icons/disconnect-dark.svg" |
| 156 | + } |
| 157 | + }, |
| 158 | + { |
| 159 | + "title": "Show SQL Notebook Connection Help", |
| 160 | + "command": "sqltools.notebook.showConnectionHelp", |
| 161 | + "category": "SQLTools Notebook", |
| 162 | + "icon": { |
| 163 | + "light": "icons/help-light.svg", |
| 164 | + "dark": "icons/help-dark.svg" |
| 165 | + } |
| 166 | + }, |
| 167 | + { |
| 168 | + "title": "Limit Query Results", |
| 169 | + "command": "sqltools.notebook.limitResults", |
| 170 | + "category": "SQLTools Notebook", |
| 171 | + "icon": { |
| 172 | + "light": "icons/limit-light.svg", |
| 173 | + "dark": "icons/limit-dark.svg" |
| 174 | + } |
| 175 | + }, |
124 | 176 | { |
125 | 177 | "title": "Connect", |
126 | 178 | "command": "sqltools.selectConnection", |
|
411 | 463 | "key": "ctrl+e ctrl+q", |
412 | 464 | "mac": "cmd+e q", |
413 | 465 | "when": "!config.sqltools.disableChordKeybindings && editorTextFocus && editorHasSelection" |
| 466 | + }, |
| 467 | + { |
| 468 | + "command": "sqltools.executeQuery", |
| 469 | + "key": "ctrl+alt+e", |
| 470 | + "mac": "cmd+alt+e", |
| 471 | + "when": "editorTextFocus && editorLangId == 'sql'" |
| 472 | + }, |
| 473 | + { |
| 474 | + "command": "sqltools.executeCurrentQuery", |
| 475 | + "key": "ctrl+alt+q", |
| 476 | + "mac": "cmd+alt+q", |
| 477 | + "when": "editorTextFocus && editorLangId == 'sql'" |
| 478 | + }, |
| 479 | + { |
| 480 | + "command": "sqltools.executeQueryFromFile", |
| 481 | + "key": "ctrl+alt+f", |
| 482 | + "mac": "cmd+alt+f", |
| 483 | + "when": "editorTextFocus && editorLangId == 'sql'" |
| 484 | + }, |
| 485 | + { |
| 486 | + "command": "sqltools.formatSql", |
| 487 | + "key": "shift+alt+f", |
| 488 | + "mac": "shift+alt+f", |
| 489 | + "when": "editorHasSelection && editorLangId == 'sql'" |
| 490 | + }, |
| 491 | + { |
| 492 | + "command": "sqltools.formatSql", |
| 493 | + "key": "shift+alt+f", |
| 494 | + "mac": "shift+alt+f", |
| 495 | + "when": "editorHasSelection" |
| 496 | + }, |
| 497 | + { |
| 498 | + "command": "sqltools.notebook.selectCellConnection", |
| 499 | + "key": "ctrl+k ctrl+c", |
| 500 | + "mac": "cmd+k cmd+c", |
| 501 | + "when": "notebookEditorFocused && notebookType == 'sqltools-notebook'" |
| 502 | + }, |
| 503 | + { |
| 504 | + "command": "sqltools.notebook.clearCellConnection", |
| 505 | + "key": "ctrl+k ctrl+r", |
| 506 | + "mac": "cmd+k cmd+r", |
| 507 | + "when": "notebookEditorFocused && notebookType == 'sqltools-notebook'" |
| 508 | + }, |
| 509 | + { |
| 510 | + "command": "sqltools.notebook.showConnectionHelp", |
| 511 | + "key": "ctrl+k ctrl+h", |
| 512 | + "mac": "cmd+k cmd+h", |
| 513 | + "when": "notebookType == 'sqltools-notebook'" |
414 | 514 | } |
415 | 515 | ], |
416 | 516 | "configuration": { |
|
1069 | 1169 | { |
1070 | 1170 | "command": "sqltools.bookmarkSelection", |
1071 | 1171 | "when": "editorHasSelection" |
| 1172 | + }, |
| 1173 | + { |
| 1174 | + "command": "sqltools.notebook.selectConnection", |
| 1175 | + "when": "notebookType == 'sqltools-notebook'" |
| 1176 | + } |
| 1177 | + ], |
| 1178 | + "notebook/title": [ |
| 1179 | + { |
| 1180 | + "command": "sqltools.notebook.selectCellConnection", |
| 1181 | + "when": "notebookType == 'sqltools-notebook'", |
| 1182 | + "group": "navigation" |
| 1183 | + }, |
| 1184 | + { |
| 1185 | + "command": "sqltools.notebook.showConnectionHelp", |
| 1186 | + "when": "notebookType == 'sqltools-notebook'", |
| 1187 | + "group": "navigation" |
1072 | 1188 | } |
1073 | 1189 | ], |
1074 | 1190 | "view/title": [ |
|
0 commit comments