diff --git a/frog-runner.jar b/frog-runner.jar index 9a90380..0de00c9 100644 Binary files a/frog-runner.jar and b/frog-runner.jar differ diff --git a/package.json b/package.json index 28dfd35..0be9686 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,10 @@ { "command": "frog.setRowLimit", "title": "Frog: Sets the row limit" + }, + { + "command": "frog.chooseConnection", + "title": "Frog: Choose a connection to use" } ], "keybindings": [ diff --git a/src/extension.ts b/src/extension.ts index 55c43db..d75a743 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -74,7 +74,7 @@ export function activate(context: vscode.ExtensionContext) { }); context.subscriptions.push(disposable); - vscode.commands.registerCommand('frog.selectConnection', (node: ConnectionNode) => { + disposable = vscode.commands.registerCommand('frog.selectConnection', (node: ConnectionNode) => { if (!sessionManager.isSessionActive()) { sessionManager.currentConnection = node; } else { @@ -86,6 +86,17 @@ export function activate(context: vscode.ExtensionContext) { }, (reason) => {}) } }) + context.subscriptions.push(disposable); + + disposable = vscode.commands.registerCommand('frog.chooseConnection', () => { + vscode.window.showQuickPick(["A", "B", "C"]) + .then( (selection) => { + if (selection == 'Yes') { + console.log(selection); + } + }, (reason) => {}) + }) + context.subscriptions.push(disposable); } // this method is called when your extension is deactivated diff --git a/src/sessionmanager.ts b/src/sessionmanager.ts index f934323..c366fd5 100644 --- a/src/sessionmanager.ts +++ b/src/sessionmanager.ts @@ -106,6 +106,7 @@ export class SessionManager { } else if ("affectedRows" in json) { this.outputChannel.append(json['affectedRows'] + " rows affected.\n"); } else { + vscode.window.showInformationMessage('Query executed successfully.'); this.outputChannel.append("SQL executed successfully.\n"); } } else {