-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
203 lines (203 loc) · 5.44 KB
/
package.json
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
{
"name": "explain-postgresql",
"displayName": "Explain PostgreSQL",
"description": "Analyzes EXPLAIN plan from PostgreSQL and related (Greenplum, Citus, TimescaleDB and Amazon RedShift). Shows plan and node details and visualizations with piechart, flowchart and tilemap, also gives smart recommendations to improve query.",
"version": "1.0.6",
"engines": {
"vscode": "^1.54.0"
},
"author": "Maksim Gorkov <[email protected]",
"publisher": "TensorCompanyLtd",
"repository": {
"type": "git",
"url": "https://github.com/MGorkov/explain-postgresql-vscode.git"
},
"categories": [
"Formatters",
"Visualization",
"Other"
],
"icon": "images/logo.png",
"license": "MIT",
"homepage": "https://explain.tensor.ru",
"activationEvents": [
"onLanguage:sql"
],
"main": "./dist/extension.js",
"types": "./src/index.d.ts",
"contributes": {
"configuration": {
"type": "object",
"title": "Explain PostgreSQL",
"properties": {
"explain-postgresql.url": {
"scope": "resource",
"type": "string",
"default": "https://explain.tensor.ru",
"description": "API site",
"order": 1
},
"explain-postgresql.explain": {
"type": "object",
"additionalProperties": false,
"description": "Explain settings",
"order": 2,
"properties": {
"ANALYZE": {
"type": "boolean"
},
"VERBOSE": {
"type": "boolean"
},
"COSTS": {
"type": "boolean"
},
"SETTINGS": {
"type": "boolean"
},
"GENERIC_PLAN": {
"type": "boolean"
},
"BUFFERS": {
"type": "boolean"
},
"WAL": {
"type": "boolean"
},
"TIMING": {
"type": "boolean"
},
"SUMMARY": {
"type": "boolean"
}
},
"default": {
"ANALYZE": true,
"VERBOSE": false,
"COSTS": false,
"SETTINGS": false,
"GENERIC_PLAN": false,
"BUFFERS": true,
"WAL": false,
"TIMING": true,
"SUMMARY": false
}
},
"explain-postgresql.location": {
"order": 3,
"type": [
"string"
],
"default": "current",
"enum": [
"next",
"current",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
"enumDescriptions": [
"New group if nothing open. Second group if currently active text editor is in first group. Otherwise third group.",
"Current active group.",
"First group.",
"Second group.",
"Third group.",
"Fourth group.",
"Fifth group.",
"Sixth group.",
"Seventh group.",
"Eighth group.",
"Ninth group."
],
"markdownDescription": "Define which edit group the explain analyze tab should appear in."
}
}
},
"commands": [
{
"command": "explain-postgresql.formatsql",
"title": "Format SQL",
"icon": "icons/EP.png"
},
{
"command": "explain-postgresql.explainanalyze",
"title": "Explain Analyze",
"icon": "icons/EP.png"
},
{
"command": "explain-postgresql.explainsite",
"title": "Explain PostgreSQL",
"icon": "icons/EP.png"
}
],
"keybindings": [
{
"command": "explain-postgresql.formatsql",
"key": "Alt+D"
},
{
"command": "explain-postgresql.explainanalyze",
"key": "Alt+A"
}
],
"menus": {
"editor/title": [
{
"when": "resourceLangId == sql",
"command": "explain-postgresql.explainsite",
"group": "navigation",
"icon": "./icons/EP.png"
}
],
"editor/context": [
{
"when": "resourceLangId == sql",
"command": "explain-postgresql.formatsql",
"group": "1_modification",
"icon": "./icons/EP.png"
},
{
"when": "resourceLangId == sql",
"command": "explain-postgresql.explainanalyze",
"group": "1_modification",
"icon": "./icons/EP.png"
}
]
}
},
"extensionDependencies": [
"mtxr.sqltools"
],
"scripts": {
"vscode:prepublish": "npm run package",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.56.0",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"vsce": "^2.15.0",
"webpack": "^5.90.1",
"webpack-cli": "^5.1.4"
}
}