(context: vscode.ExtensionContext)
| 17 | export const globalLspClient = new SqlLspClient(); |
| 18 | |
| 19 | export function activate(context: vscode.ExtensionContext) { |
| 20 | context.subscriptions.push( |
| 21 | vscode.workspace.registerNotebookSerializer( |
| 22 | notebookType, |
| 23 | new SQLSerializer() |
| 24 | ) |
| 25 | ); |
| 26 | const connectionsSidepanel = new SQLNotebookConnections(context); |
| 27 | vscode.window.registerTreeDataProvider( |
| 28 | 'sqlnotebook-connections', |
| 29 | connectionsSidepanel |
| 30 | ); |
| 31 | |
| 32 | activateFormProvider(context); |
| 33 | |
| 34 | context.subscriptions.push(new SQLNotebookController()); |
| 35 | |
| 36 | vscode.commands.registerCommand( |
| 37 | 'sqlnotebook.deleteConnectionConfiguration', |
| 38 | deleteConnectionConfiguration(context, connectionsSidepanel) |
| 39 | ); |
| 40 | |
| 41 | vscode.commands.registerCommand('sqlnotebook.refreshConnectionPanel', () => { |
| 42 | connectionsSidepanel.refresh(); |
| 43 | }); |
| 44 | vscode.commands.registerCommand( |
| 45 | 'sqlnotebook.connect', |
| 46 | connectToDatabase(context, connectionsSidepanel) |
| 47 | ); |
| 48 | } |
| 49 | |
| 50 | export function deactivate() {} |
nothing calls this directly
no test coverage detected