-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
224 lines (224 loc) · 7.95 KB
/
package.json
File metadata and controls
224 lines (224 loc) · 7.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"name": "hive-formatter",
"displayName": "Hive Formatter",
"description": "一个用于Hive/MySQL/SparkSQL格式化的VSCode插件",
"version": "0.0.5",
"publisher": "bryce-qin",
"contributors": [
"TalDu"
],
"license": "MIT",
"icon": "hive-formatter-icon.png",
"engines": {
"vscode": "^1.108.1"
},
"repository": {
"type": "git",
"url": "https://github.com/BryceQin/Hive-Formatter"
},
"bugs": {
"url": "https://github.com/BryceQin/Hive-Formatter/issues"
},
"categories": [
"Formatters",
"Other"
],
"keywords": [
"hive",
"formatter",
"mysql",
"spark",
"sparksql",
"sql"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:sql",
"onLanguage:hive"
],
"main": "./out/extension.js",
"browser": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "sql",
"aliases": [
"SQL",
"sql"
],
"extensions": [
".sql"
]
},
{
"id": "hive",
"aliases": [
"Hive",
"hive"
],
"extensions": [
".hql"
]
}
],
"commands": [
{
"title": "Format Selection (Hive Formatter)",
"shortTitle": "Format Hive",
"command": "hive-formatter.format-selection"
}
],
"configuration": {
"title": "Hive Formatter",
"properties": {
"Hive-Formatter.dialect": {
"type": "string",
"enum": [
"hive",
"mysql",
"spark",
"sql"
],
"enumDescriptions": [
"Apache Hive",
"MySQL",
"Spark",
"Basic SQL - generally not recommended."
],
"default": "hive",
"markdownDescription": "选择使用的SQL方言。强烈建议选择否则可能出错。"
},
"Hive-Formatter.ignoreTabSettings": {
"type": "boolean",
"default": false,
"markdownDescription": "是否忽略用户和工作区设置的 `tabSize` 和 `insertSpaces` (使用 `#Hive-Formatter.tabSizeOverride#` 和 `#Hive-Formatter.insertSpacesOverride#`)?"
},
"Hive-Formatter.tabSizeOverride": {
"type": "number",
"default": 2,
"minimum": 1,
"markdownDescription": "当 `#Hive-Formatter.ignoreTabSettings#`激活时,覆盖 `tabSize` 设置,"
},
"Hive-Formatter.insertSpacesOverride": {
"type": "boolean",
"default": true,
"markdownDescription": "当 `#Hive-Formatter.ignoreTabSettings#`激活时,覆盖 `insertSpaces` 设置"
},
"Hive-Formatter.keywordCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "以大写、小写或保留现状来格式化关键字"
},
"Hive-Formatter.dataTypeCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "以大写、小写或保留现状来格式化数据类型"
},
"Hive-Formatter.functionCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "以大写、小写或保留现状来格式化函数名"
},
"Hive-Formatter.identifierCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "以大写、小写或保留现状来格式化标识符"
},
"Hive-Formatter.indentStyle": {
"type": "string",
"enum": [
"standard",
"tabularLeft",
"tabularRight"
],
"enumDescriptions": [
"标准SQL格式,带有级联缩进",
"在关键字和参数之间保留空格列,使关键字左对齐",
"在关键字和参数之间保留空格列,将关键字向右对齐"
],
"default": "standard",
"markdownDescription": "在标准关键词定位与保持中心位置列之间进行切换"
},
"Hive-Formatter.logicalOperatorNewline": {
"type": "string",
"enum": [
"before",
"after"
],
"default": "before",
"markdownDescription": "是否在 AND 和 OR 之前或之后换行"
},
"Hive-Formatter.expressionWidth": {
"type": "integer",
"default": 50,
"minimum": 0,
"markdownDescription": "一对括号之间的字符数达到多少时,应将表达式拆分为多行"
},
"Hive-Formatter.linesBetweenQueries": {
"type": "integer",
"default": 1,
"minimum": 0,
"markdownDescription": "每个查询/语句之间应放置多少个换行符"
},
"Hive-Formatter.denseOperators": {
"type": "boolean",
"default": false,
"markdownDescription": "是否去除运算符(如+或>=)周围的空格"
},
"Hive-Formatter.newlineBeforeSemicolon": {
"type": "boolean",
"default": false,
"markdownDescription": "分号应另起一行还是放在上一行"
},
"Hive-Formatter.paramTypes": {
"type": "object",
"markdownDescription": "指定要支持的参数占位符类型"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/nearley": "^2.11.5",
"@types/node": "22.x",
"@types/vscode": "^1.108.1",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.39.2",
"eslint-plugin-tsdoc": "^0.5.0",
"jiti": "^2.6.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.52.0"
},
"dependencies": {
"nearley": "^2.20.1"
}
}