Fixed some bugs

master
Thorsten Muerell 7 years ago
parent 0d194a9e19
commit 504e209202

Binary file not shown.

@ -54,6 +54,10 @@
{
"command": "frog.setRowLimit",
"title": "Frog: Sets the row limit"
},
{
"command": "frog.chooseConnection",
"title": "Frog: Choose a connection to use"
}
],
"keybindings": [

@ -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

@ -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 {

Loading…
Cancel
Save