Skip to content

Commit

Permalink
Add color theme recommend on README, release v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
camilesing committed Nov 19, 2022
1 parent 0368378 commit 70f591c
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### v1.2.0
- Add color theme recommend on README.
### v1.1.3
- Fix bug.
### v1.1.2
Expand Down
146 changes: 142 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,158 @@
# flink-sql
# Flink-SQL-VsCode

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.


## Features

Enables syntax highlighting and formatting for Flink SQL(v1.16.0), including user-defined functions.
Enables syntax highlighting and complete keywords for Flink SQL(v1.16.0), including user-defined functions.


## How use
Enable the extension on your file, either name the file with a extension:
- SQL
- FQL

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

# TODO List

## Color theme recommend
~~~json
{
"workbench.colorTheme": "Default Dark+",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "keyword.control.flink",
"settings": {
"foreground": "#559DD6"
}
},
{
"scope": "storage.type.flink",
"settings": {
"foreground": "#C27432"
}
},
{
"scope": "support.type.flink",
"settings": {
"foreground": "#C27432"
}
},
{
"scope": "constant.language.flink",
"settings": {
"foreground": "#C27432"
}
},
{
"scope": "keyword.operator.arithmetic.flink",
"settings": {
"foreground": "#F4BE6B"
}
},
{
"scope": "keyword.operator.relational.flink",
"settings": {
"foreground": "#F0F400"
}
},
{
"scope": "keyword.operator.logical.flink",
"settings": {
"foreground": "#C27432"
}
},
{
"scope": "support.function.udf.complex.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.mathematic.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.type-cast.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.date.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.conditional.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.string.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.json.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.value.construct.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.value.access.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udaf.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.aggregate.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.time.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.udf.column.flink",
"settings": {
"foreground": "#F2BC69"
}
},
{
"scope": "support.function.time.attributes.flink",
"settings": {
"foreground": "#F2BC69"
}
},
],
}
}
~~~

## TODO List
- Support grammer:`Conditional Functions``CASE value WHEN value1_1 [, value1_2]* THEN RESULT1 (WHEN value2_1 [, value2_2 ]* THEN result_2)* (ELSE result_z) END`
- Error grammer highlight
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flink-sql",
"version": "1.1.3",
"version": "1.2.0",
"displayName": "Flink SQL",
"description": "Adds support for Flink's variant of the SQL language",
"publisher": "CamileSing",
Expand Down

0 comments on commit 70f591c

Please sign in to comment.