Skip to content

Commit b4274ed

Browse files
committed
Fix to sql URI handler
Signed-off-by: worksofliam <[email protected]>
1 parent 6b04ac9 commit b4274ed

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/uriHandler.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,12 @@ export class Db2iUriHandler implements UriHandler {
2020
if (isValid) {
2121
const run = queryData.run === `true`;
2222

23-
if (run) {
24-
if (remoteAssistIsEnabled()) {
25-
commands.executeCommand(`vscode-db2i.runEditorStatement`, {
26-
content,
27-
qualifier: `statement`,
28-
open: true,
29-
});
30-
} else {
31-
window.showErrorMessage(`You must be connected to a system to run a statement.`);
32-
}
23+
if (run && remoteAssistIsEnabled()) {
24+
commands.executeCommand(`vscode-db2i.runEditorStatement`, {
25+
content,
26+
qualifier: `statement`,
27+
open: true,
28+
});
3329
} else {
3430
workspace.openTextDocument({ language: `sql`, content }).then(textDoc => {
3531
window.showTextDocument(textDoc);

0 commit comments

Comments
 (0)