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