Fixed some bugs
This commit is contained in:
BIN
frog-runner.jar
BIN
frog-runner.jar
Binary file not shown.
@@ -54,6 +54,10 @@
|
|||||||
{
|
{
|
||||||
"command": "frog.setRowLimit",
|
"command": "frog.setRowLimit",
|
||||||
"title": "Frog: Sets the row limit"
|
"title": "Frog: Sets the row limit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "frog.chooseConnection",
|
||||||
|
"title": "Frog: Choose a connection to use"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"keybindings": [
|
"keybindings": [
|
||||||
|
@@ -74,7 +74,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
});
|
});
|
||||||
context.subscriptions.push(disposable);
|
context.subscriptions.push(disposable);
|
||||||
|
|
||||||
vscode.commands.registerCommand('frog.selectConnection', (node: ConnectionNode) => {
|
disposable = vscode.commands.registerCommand('frog.selectConnection', (node: ConnectionNode) => {
|
||||||
if (!sessionManager.isSessionActive()) {
|
if (!sessionManager.isSessionActive()) {
|
||||||
sessionManager.currentConnection = node;
|
sessionManager.currentConnection = node;
|
||||||
} else {
|
} else {
|
||||||
@@ -86,6 +86,17 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
}, (reason) => {})
|
}, (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
|
// this method is called when your extension is deactivated
|
||||||
|
@@ -106,6 +106,7 @@ export class SessionManager {
|
|||||||
} else if ("affectedRows" in json) {
|
} else if ("affectedRows" in json) {
|
||||||
this.outputChannel.append(json['affectedRows'] + " rows affected.\n");
|
this.outputChannel.append(json['affectedRows'] + " rows affected.\n");
|
||||||
} else {
|
} else {
|
||||||
|
vscode.window.showInformationMessage('Query executed successfully.');
|
||||||
this.outputChannel.append("SQL executed successfully.\n");
|
this.outputChannel.append("SQL executed successfully.\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user