We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b04ac9 commit b4274edCopy full SHA for b4274ed
src/uriHandler.ts
@@ -20,16 +20,12 @@ export class Db2iUriHandler implements UriHandler {
20
if (isValid) {
21
const run = queryData.run === `true`;
22
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
- }
+ if (run && remoteAssistIsEnabled()) {
+ commands.executeCommand(`vscode-db2i.runEditorStatement`, {
+ content,
+ qualifier: `statement`,
+ open: true,
+ });
33
} else {
34
workspace.openTextDocument({ language: `sql`, content }).then(textDoc => {
35
window.showTextDocument(textDoc);
0 commit comments