Skip to content

Commit cad8ccf

Browse files
committed
Add syntax checking section to DB2i documentation
Signed-off-by: worksofliam <[email protected]>
1 parent e2e4f39 commit cad8ccf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Loading

src/content/docs/extensions/db2i/index.mdx

+16
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ A fully qualified table name is required for the fields to be editable.
7070
update: select * from sample.employee;
7171
```
7272

73+
## Syntax checking
74+
75+
When connected to an IBM i, should be enabled. Here is what triggers to syntax checker:
76+
77+
* as you edit an SQL file, the statement being edited will be syntax checked after a short period of time (enabled by default)
78+
* when you open an SQL file, the entire document will be checked (disabled by default and has a limit of 200 statements in the document)
79+
* when the 'check syntax' button is pressed, which is shown when an SQL document is open and are connected to a system (has the same statement limit)
80+
81+
The syntax checker configuration is available through the VS Code settings (and not the Connection Settings).
82+
83+
![](./images/syntaxchecker.png)
84+
85+
<Aside type="tip">
86+
Use the `{}` (brackets icon) near the language ID in the status bar to see if the syntax checker is enabled or not. This is shown in the screenshot above.
87+
</Aside>
88+
7389
## SQL Job Manager
7490

7591
This view allows users to manage different SQL jobs, each with their own unique JDBC configuration. A new job can be created by clicking the database icon in the SQL Job Manage title bar. Or, if you have not created a new job before, there is a big button to do the same action.

0 commit comments

Comments
 (0)