Skip to content

Commit bf09cd7

Browse files
committed
update docs. release v1.7.1
1 parent 941373b commit bf09cd7

13 files changed

Lines changed: 50 additions & 39 deletions

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v1.7.1
2+
- Feature: Grammar check be optional features from experiment.
3+
14
### v1.6.0
25
- Support:
36
- show reference and count.
@@ -8,7 +11,7 @@
811
### v1.5.3
912
- Fix check semicolon bug.
1013
### v1.5.2
11-
- Add experiment feature: Error grammer check.
14+
- Add experiment feature: Error grammar check.
1215
### v1.4.0
1316
- Support code format.
1417
### v1.3.0

README.md

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,46 @@
1-
# Flink-SQL-VsCode
1+
# Flink-SQL-Checker
22

3-
This extension provides Flink SQL support for VSCode. It also provides some basic code snippets for operations such as creating a table, altering a table, or renaming columns and error grammer check.
3+
This extension provides Flink SQL support for VSCode. Support Flink SQL error grammer check, syntax highlighting, complete keywords, rename and code format, including user-defined functions.
44

55

66
## 1.Features
77

8-
Support Flink SQL(v1.16.0) syntax highlighting, complete keywords, error grammer check and code format, including user-defined functions
8+
### 1.1 Grammar Check
9+
open your `setting.json`, add `"flink-sql-grammar-check.enable": true` or
10+
![](images/open-setting.jpg)
911

10-
![](images/flink-sql-vscode-snippets.gif)
12+
example:
13+
- ![](images/expect-semicolon.jpg)
14+
15+
- ![](images/select-not-expect-comma.jpg)
16+
17+
- ![](images/unexpect-input.jpg)
18+
19+
### 1.2 Rename
20+
![](images/rename.gif)
21+
22+
### 1.3 Code Completion Proposals
23+
![](images/code-completion-proposal.gif)
1124

25+
### 1.4 Snippets
1226
snippets keywords:
1327
- create
1428
- select
1529
- insert
1630

17-
## 1.1 How use
31+
![](images/flink-sql-vscode-snippets.gif)
32+
33+
### 1.5 Code Format
34+
Select your FlinkSQL code and press ```Alt+Shift+f```.
35+
36+
## 2. User Guide
1837
Enable the extension on your file, either name the file with a extension:
1938
- SQL
2039
- FQL
2140

2241
Or press F1, type 'Change Language Mode', and then choose FlinkSQL.
2342

24-
### 1.1.1 Format
25-
26-
Select your FlinkSQL code and press ```Alt+Shift+f```.
27-
28-
### 1.1.2 Error grammer check
29-
> The feature during experiment.
30-
31-
open your `setting.json`, add `"flink-sql-grammar-check.enable": true`
32-
33-
## 1.2 Color theme recommend
43+
### 2.1 Color theme recommend
3444
~~~json
3545
{
3646
"workbench.colorTheme": "Default Dark+",
@@ -165,19 +175,4 @@ open your `setting.json`, add `"flink-sql-grammar-check.enable": true`。
165175
],
166176
}
167177
}
168-
~~~
169-
170-
## 2. Dev Grammar
171-
- Edit `FlinkSQL.g4`
172-
- Run `npm run antlr4ts` generate for ts code then move to src directory.
173-
- Copy ./gen ts file to src directory
174-
175-
## 3. Build
176-
177-
### 3.1 Prerequisites
178-
- npm
179-
- vsce
180-
181-
### 3.2 Build
182-
- Run ```npm install --dependencies``` to install dependencies.
183-
- Run ```vsce package``` to build extension.
178+
~~~

docs/Develop Guide.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 1 Prerequisites
2+
- npm
3+
- vsce
4+
5+
# 2. Build
6+
- Run ```npm install --dependencies``` to install dependencies.
7+
- Run ```vsce package``` to build extension.
8+
9+
10+
# 3. If you want add or update grammar rule
11+
- Edit `FlinkSQL.g4`
12+
- Run `npm run antlr4ts` generate for ts code then move to src directory.
13+
- Copy ./gen ts file to src directory
102 KB
Loading

images/expect-semicolon.jpg

45.1 KB
Loading

images/open-setting.jpg

39 KB
Loading

images/rename.gif

192 KB
Loading

images/select-not-expect-comma.jpg

66.7 KB
Loading

images/unexpect-input.jpg

113 KB
Loading

out/extension.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)