Add commit and rollback
This commit is contained in:
		@@ -27,6 +27,14 @@
 | 
				
			|||||||
                "command": "frog.compileFile",
 | 
					                "command": "frog.compileFile",
 | 
				
			||||||
                "title": "Frog: Compiles the current file"
 | 
					                "title": "Frog: Compiles the current file"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "command": "frog.commit",
 | 
				
			||||||
 | 
					                "title": "Frog: Commits the current transaction"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "command": "frog.rollback",
 | 
				
			||||||
 | 
					                "title": "Frog: Rollbacks"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "command": "frog.selectConnection",
 | 
					                "command": "frog.selectConnection",
 | 
				
			||||||
                "title": "Frog: Selects the connection to use"
 | 
					                "title": "Frog: Selects the connection to use"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,6 +49,16 @@ export function activate(context: vscode.ExtensionContext) {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
    context.subscriptions.push(disposable);
 | 
					    context.subscriptions.push(disposable);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    disposable = vscode.commands.registerCommand('frog.commit', () => {
 | 
				
			||||||
 | 
					        sessionManager.execute("commit", 0);
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					    context.subscriptions.push(disposable);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    disposable = vscode.commands.registerCommand('frog.rollback', () => {
 | 
				
			||||||
 | 
					        sessionManager.execute("rollback", 0);
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					    context.subscriptions.push(disposable);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function changeSession(node: ConnectionNode) {
 | 
					    function changeSession(node: ConnectionNode) {
 | 
				
			||||||
        sessionManager.currentConnection = node;
 | 
					        sessionManager.currentConnection = node;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user