-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
package.json
388 lines (388 loc) · 11.5 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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
{
"name": "language-1c-bsl",
"displayName": "Language 1C (BSL)",
"description": "Syntax highlighting for 1C:Enterprise 8.",
"icon": "images/1c-syntax.png",
"version": "1.21.0",
"publisher": "1c-syntax",
"galleryBanner": {
"color": "#0000FF",
"theme": "dark"
},
"license": "SEE LICENSE IN LICENSE.md",
"bugs": {
"url": "https://github.com/1c-syntax/vsc-language-1c-bsl/issues"
},
"homepage": "https://github.com/1c-syntax/vsc-language-1c-bsl/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/1c-syntax/vsc-language-1c-bsl.git"
},
"categories": [
"Programming Languages"
],
"engines": {
"vscode": "^1.41.0"
},
"main": "./out/src/extension",
"scripts": {
"test": "cross-env CODE_TESTS_WORKSPACE=test/fixtures node ./node_modules/vscode/bin/test",
"vscode:prepublish": "tsc -p ./",
"lint": "tslint --project tsconfig.json 'src/**/*.ts' -t verbose",
"compile": "tsc -watch -p ./",
"preLaunch": "tsc -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect"
},
"activationEvents": [
"onLanguage:bsl",
"onLanguage:sdbl",
"onCommand:language-1c-bsl.update",
"onCommand:language-1c-bsl.syntaxHelper",
"onCommand:language-1c-bsl.quickopen"
],
"contributes": {
"jsonValidation": [
{
"fileMatch": ".bsl-language-server.json",
"url": "https://1c-syntax.github.io/bsl-language-server/configuration/schema.json"
}
],
"commands": [
{
"command": "language-1c-bsl.update",
"title": "Update reference cache",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.createComments",
"title": "Create comment to current method",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.createDescriptionAPIModule",
"title": "Create a description for the API module",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.createMarkdownTextWithAPI",
"title": "Create a Markdown text of the module's API",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.dynamicSnippets",
"title": "Show dynamic snippets list",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.expandAbbreviation",
"title": "Expand abbrebiation",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.addComment",
"title": "Add comment",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.beautify",
"title": "Выровнять блок пробелами",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.syntaxHelper",
"title": "Show syntax-helper",
"category": "Language 1C (BSL)",
"icon": {
"light": "./images/preview-darkgray.svg",
"dark": "./images/preview-lightgray.svg"
}
},
{
"command": "language-1c-bsl.quickopen",
"title": "QuickOpen",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.openContent",
"title": "OpenContent",
"category": "Language 1C (BSL)"
},
{
"command": "language-1c-bsl.languageServer.restart",
"title": "Restart the BSL Language Server",
"category": "Language 1C (BSL)"
}
],
"menus": {
"editor/title": [
{
"when": "resourceLangId == bsl",
"command": "language-1c-bsl.syntaxHelper",
"group": "navigation"
}
],
"editor/context": [
{
"when": "resourceLangId == bsl && editorHasSelection",
"command": "language-1c-bsl.beautify"
}
],
"commandPalette": [
{
"command": "language-1c-bsl.addComment",
"when": "false"
},
{
"command": "language-1c-bsl.openContent",
"when": "false"
}
]
},
"configuration": {
"title": "Language 1C (BSL) configuration",
"properties": {
"language-1c-bsl.enableOneScriptLinter": {
"description": "Lint files through `OneScript -check` command",
"type": "boolean",
"default": true
},
"language-1c-bsl.onescriptPath": {
"description": "Full path to oscript binary. Fill this only if oscript is not in your $PATH",
"type": "string"
},
"language-1c-bsl.lintOtherExtensions": {
"description": "List of extensions (except `os`) to lint via OneScriptLint. (format - 'bsl,txt')",
"type": "string",
"default": ""
},
"language-1c-bsl.linterEntryPoint": {
"description": "Entry point for OneScriptLinter. Relative path from project root folder",
"type": "string"
},
"language-1c-bsl.languageAutocomplete": {
"description": "Autocomplete language (en/ru)",
"type": "string",
"default": "ru"
},
"language-1c-bsl.dynamicSnippets": {
"description": "Paths to dynamic snippets' files",
"type": "array",
"default": []
},
"language-1c-bsl.rootPath": {
"description": "Путь по умолчанию к корню файла конфигурации (./src/cf) относительно каталога workspace для правильного autocomplete",
"type": "string"
},
"language-1c-bsl.autoDetect": {
"type": "string",
"enum": [
"off",
"on"
],
"default": "on",
"description": "Controls whether auto detection of opm scripts is on or off. Default is on."
},
"language-1c-bsl.languageServerEnabled": {
"description": "BSL Language Server enabled",
"type": "boolean",
"default": true
},
"language-1c-bsl.languageServerBaseInstallDir": {
"description": "BSL Language Server base install dir.",
"type": "string",
"default": ""
},
"language-1c-bsl.languageServerConfiguration": {
"description": "Path to BSL Language Server configuration file. Relative to workspace folder.",
"type": "string",
"default": ".bsl-language-server.json"
},
"language-1c-bsl.githubToken": {
"description": "GitHub OAuth token. Fill property if you get an `API rate limit exceeded` error with BSL LS downloading. Get new token: https://github.com/settings/tokens. No additional scopes are required. Can be obtained from enviroment variable $LANGUAGE_1C_BSL_GITHUB_TOKEN",
"type": "string",
"default": ""
},
"language-1c-bsl.languageServerReleaseChannel": {
"description": "BSL Language server download channel. Use `prerelease` if you want to check latest release candidates",
"type": "string",
"enum": [
"stable",
"prerelease"
],
"default": "stable"
},
"language-1c-bsl.languageServerExternalJar": {
"description": "Use external bsl-language-server.jar",
"type": "boolean",
"default": false
},
"language-1c-bsl.languageServerExternalJarPath": {
"description": "Path to BSL Language Server jar-file. Leave default value to use bundled language server. Relative to vsc-language-1c-bsl folder.",
"type": "string",
"default": ""
},
"language-1c-bsl.languageServerExternalJarJavaPath": {
"description": "Path to Java runtime binary. Leave default value to use java from PATH.",
"type": "string",
"default": "java"
},
"language-1c-bsl.languageServerExternalJarJavaOpts": {
"description": "Additional java options.",
"type": "array",
"default": [
"-Xmx2g"
]
}
}
},
"keybindings": [
{
"command": "language-1c-bsl.syntaxHelper",
"key": "ctrl+f1",
"mac": "cmd+f1",
"when": "editorTextFocus && editorLangId == 'bsl'"
},
{
"command": "language-1c-bsl.dynamicSnippets",
"key": "ctrl+q",
"mac": "cmd+q",
"when": "editorTextFocus && editorLangId == 'bsl'"
},
{
"command": "language-1c-bsl.expandAbbreviation",
"key": "tab",
"mac": "tab",
"when": "editorTextFocus && editorLangId == 'bsl'"
},
{
"command": "language-1c-bsl.addComment",
"key": "shift+enter",
"mac": "shift+enter",
"when": "editorTextFocus && editorLangId == 'bsl'"
}
],
"languages": [
{
"id": "bsl",
"extensions": [
".bsl",
".os"
],
"aliases": [
"1C (BSL)",
"BSL"
],
"configuration": "./language-configuration.json"
},
{
"id": "sdbl",
"extensions": [
".sdbl",
".query"
],
"aliases": [
"1C (Query)",
"SDBL"
]
}
],
"grammars": [
{
"language": "bsl",
"scopeName": "source.bsl",
"path": "./syntaxes/1c.tmLanguage"
},
{
"language": "sdbl",
"scopeName": "source.sdbl",
"path": "./syntaxes/1c-query.tmLanguage"
}
],
"problemMatchers": [
{
"name": "OneScript Linter",
"label": "onescript",
"owner": "bsl",
"fileLocation": "absolute",
"pattern": {
"regexp": "Модуль\\s+(.*)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^}]*)",
"file": 1,
"line": 2,
"message": 3
}
}
],
"snippets": [
{
"language": "bsl",
"path": "./snippets/snippets.json"
}
],
"taskDefinitions": [
{
"type": "bsl",
"properties": {
"command": {
"type": "string",
"description": ""
},
"args": {
"type": "array",
"description": ""
}
}
}
],
"configurationDefaults": {
"[bsl]": {
"editor.insertSpaces": false,
"editor.tabSize": 4
}
}
},
"devDependencies": {
"@types/extract-zip": "^1.6.2",
"@types/fs-extra": "^8.0.1",
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.7",
"@types/node": "13.5.1",
"@types/request": "^2.48.4",
"@types/request-promise-native": "^1.0.17",
"@types/semver": "^7.1.0",
"@types/which": "^1.3.2",
"cross-env": "^7.0.0",
"decache": "^4.5.1",
"istanbul": "^0.4.5",
"remap-istanbul": "^0.13.0",
"should": "^13.2.3",
"snyk": "^1.321.0",
"tslint": "^6.0.0",
"tslint-sonarts": "^1.9.0",
"typescript": "^3.7.5",
"vscode": "^1.1.36"
},
"dependencies": {
"alignment": "0.0.1",
"cross-spawn": "^7.0.1",
"extract-zip": "^1.6.8",
"fast-xml-parser": "3.15.1",
"filequeue": "^0.5.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.6",
"iconv-lite": "^0.5.1",
"json-date-parser": "^1.0.1",
"lokijs": "^1.5.8",
"onec-syntaxparser": "0.1.11",
"request": "^2.88.0",
"request-progress": "^3.0.0",
"request-promise-native": "^1.0.8",
"semver": "^7.1.1",
"vsce": "^1.75.0",
"vscode-languageclient": "^6.1.0",
"which": "^2.0.2",
"xml2js": "^0.4.23"
},
"snyk": true
}