-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpackage.json
302 lines (302 loc) · 12.2 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
{
"name": "vscode-powerquery",
"version": "0.1.61",
"displayName": "Power Query / M Language",
"description": "Language service for the Power Query / M formula language",
"author": "Microsoft Corporation",
"license": "MIT",
"homepage": "https://github.com/microsoft/vscode-powerquery#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/vscode-powerquery.git"
},
"issues": {
"url": "https://github.com/microsoft/vscode-powerquery/issues"
},
"scripts": {
"postinstall": "npm run install:client && npm run install:server && npm run install:scripts",
"install:client": "cd client && npm install-clean",
"install:server": "cd server && npm install-clean",
"install:scripts": "cd scripts && npm install-clean",
"audit": "npm audit fix && npm run audit:client && npm run audit:server && npm run audit:scripts",
"audit:client": "cd client && npm audit",
"audit:server": "cd server && npm audit",
"audit:scripts": "cd scripts && npm audit",
"audit:fix": "npm audit fix && npm run audit:fix:client && npm run audit:fix:server && npm run audit:fix:scripts",
"audit:fix:client": "cd client && npm audit fix",
"audit:fix:server": "cd server && npm audit fix",
"audit:fix:scripts": "cd scripts && npm audit fix",
"build": "npm run build:client && npm run build:server && npm run build:scripts",
"build:client": "cd client && npm run build",
"build:server": "cd server && npm run build",
"build:scripts": "cd scripts && npm run build",
"link:start": "npm run link:start:client && npm run link:start:server && npm run link:start:scripts",
"link:start:client": "cd client && npm run link:start",
"link:start:server": "cd server && npm run link:start",
"link:start:scripts": "cd scripts && npm run link:start",
"link:stop": "npm run link:stop:client && npm run link:stop:server && npm run link:stop:scripts",
"link:stop:client": "cd client && npm run link:stop",
"link:stop:server": "cd server && npm run link:stop",
"link:stop:scripts": "cd scripts && npm run link:stop",
"lint": "npm run lint:client && npm run lint:server",
"lint:client": "eslint client/src --ext ts",
"lint:server": "eslint server/src --ext ts",
"lint:scripts": "eslint scripts --ext ts",
"test": "npm run test:server && npm run test:client",
"test:client": "cd client && npm run test",
"test:server": "cd server && npm run test",
"webpack-dev": "npm run webpack-dev:client && npm run webpack-dev:server",
"webpack-dev:client": "cd client && npm run webpack-dev",
"webpack-dev:server:": "cd server && npm run webpack-dev",
"webpack-prod": "npm run webpack-prod:server && npm run webpack-prod:client",
"webpack-prod:client": "cd client && npm run webpack-prod",
"webpack-prod:server": "cd server && npm run webpack-prod",
"version": "npm version patch && npm run version:client && npm run version:server && npm run version:scripts",
"version:client": "cd client && npm version patch",
"version:server": "cd server && npm version patch",
"version:scripts": "cd scripts && npm version patch",
"vscode:prepublish": "npm run webpack-prod",
"vsix": "npx @vscode/vsce@latest package"
},
"icon": "imgs/PQIcon_256.png",
"main": "./client/dist/extension",
"types": "./client/dist/extension.d.ts",
"engines": {
"node": ">= 20",
"vscode": "^1.87.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"categories": [
"Programming Languages"
],
"activationEvents": [],
"publisher": "PowerQuery",
"contributes": {
"commands": [
{
"command": "powerquery.extractDataflowDocument",
"title": "Extract document from dataflow.json",
"category": "powerquery"
},
{
"command": "powerquery.mEscapeText",
"title": "Encode selection as an M text value",
"category": "powerquery"
},
{
"command": "powerquery.mUnescapeText",
"title": "Remove M text encoding from selection",
"category": "powerquery"
},
{
"command": "powerquery.jsonUnescapeText",
"title": "Remove JSON string encoding from selection",
"category": "powerquery"
},
{
"command": "powerquery.jsonEscapeText",
"title": "Encode selection as a JSON value",
"category": "powerquery"
}
],
"menus": {
"commandPalette": [
{
"command": "powerquery.extractDataflowDocument",
"when": "editorIsOpen && editorLangId == json"
},
{
"command": "powerquery.mEscapeText",
"when": "editorHasSelection"
},
{
"command": "powerquery.mUnescapeText",
"when": "editorHasSelection"
},
{
"command": "powerquery.jsonUnescapeText",
"when": "editorHasSelection"
},
{
"command": "powerquery.jsonEscapeText",
"when": "editorHasSelection"
}
]
},
"configuration": {
"type": "object",
"title": "Power Query",
"properties": {
"powerquery.benchmark.enable": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Recommended always off. Enables benchmark traces to be generated for the extension."
},
"powerquery.client.additionalSymbolsDirectories": {
"scope": "machine-overridable",
"type": "array",
"items": {
"type": "string"
},
"examples": [
"c:\\PowerQuerySymbols\\"
],
"markdownDescription": "One or more absolute file system paths to directories containing M language symbols in json format."
},
"powerquery.diagnostics.isWorkspaceCacheAllowed": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "Recommended always on. Toggles internal caching causing performance degregation when off. Used to find hot paths in the extension."
},
"powerquery.diagnostics.typeStrategy": {
"scope": "window",
"type": "string",
"default": "Primitive",
"description": "Sets what strategy is used by the type analysis. Extended is useful for small scripts but can hang on larger, complicated files. If performance isn't acceptable then fallback to Primitive.",
"enum": [
"Extended",
"Primitive"
]
},
"powerquery.general.experimental": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Specifies whether to enable experimental features."
},
"powerquery.general.locale": {
"scope": "window",
"type": "string",
"description": "Locale to use for errors and other messages returned by the language parser.",
"enum": [
"bg-BG",
"ca-EZ",
"cs-CZ",
"da-DK",
"de-DE",
"el-GR",
"en-US",
"es-ES",
"et-EE",
"eu-ES",
"fi-FI",
"fr-FR",
"gl-ES",
"hi-IN",
"hr-HR",
"hu-HU",
"id-ID",
"it-IT",
"ja-JP",
"kk-KZ",
"ko-KR",
"lt-LT",
"lv-LV",
"ms-MY",
"nb-NO",
"nl-NL",
"pl-PL",
"pt-BR",
"pt-PT",
"ro-RO",
"ru-RU",
"sk-SK",
"sl-SI",
"sr-Cyrl-RS",
"sr-Latn-RS",
"sv-SE",
"th-TH",
"tr-TR",
"uk-UA",
"vi-VN",
"zh-CN",
"zh-TW"
],
"default": "en-US"
},
"powerquery.general.mode": {
"scope": "window",
"type": "string",
"default": "Power Query",
"description": "Changes what library functions are available.",
"enum": [
"Power Query",
"SDK"
]
},
"powerquery.timeout.symbolTimeoutInMs": {
"scope": "window",
"type": "number",
"default": 2000,
"description": "Symbol provider timeout in milliseconds."
},
"powerquery.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"powerquery.editor.transformTarget": {
"scope": "window",
"type": "string",
"enum": [
"inPlace",
"clipboard"
],
"default": "inPlace",
"description": "Default target for text transformation operations - allows the choice of in place (replacing the currently selected text) or storing the results on the clipboard."
}
}
},
"languages": [
{
"id": "powerquery",
"aliases": [
"Power Query Formula Language",
"Power Query/M",
"Power Query",
"powerquery",
"pq",
"M"
],
"extensions": [
".pq",
".pqout",
".pqm",
".m",
".mout"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "powerquery",
"scopeName": "source.powerquery",
"path": "./syntaxes/powerquery.tmLanguage.json"
}
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.24.0",
"@typescript-eslint/parser": "5.24.0",
"eslint": "8.15.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-security": "1.5.0",
"prettier": "2.6.2",
"typescript": "4.6.4"
}
}