-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
358 lines (358 loc) · 9.13 KB
/
package.json
File metadata and controls
358 lines (358 loc) · 9.13 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
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
{
"name": "vscode-abaplint",
"displayName": "abaplint",
"description": "ABAP linting, problems view, go to definition, find references, and quick fixes.",
"author": "Lars Hvam",
"license": "MIT",
"version": "0.6.602",
"repository": {
"type": "git",
"url": "https://github.com/abaplint/vscode-abaplint"
},
"publisher": "larshp",
"keywords": [
"abap",
"SAP",
"abaplint"
],
"categories": [
"Linters"
],
"engines": {
"vscode": "^1.37.1"
},
"activationEvents": [
"workspaceContains:/abaplint.json",
"workspaceContains:/abaplint.jsonc",
"workspaceContains:/.abapgit.xml",
"onLanguage:abap",
"onLanguage:abap_cds"
],
"icon": "img/abaplint_icon.png",
"main": "./out-native/extension",
"browser": "./out-browser/client",
"contributes": {
"breakpoints": [
{
"language": "abap"
}
],
"commands": [
{
"command": "abaplint.show",
"title": "Show abaplint Help",
"category": "abaplint",
"icon": {
"dark": "img/abaplint.svg",
"light": "img/abaplint.svg"
}
},
{
"command": "abaplint.load.different.config",
"title": "Load Config File",
"category": "abaplint"
},
{
"command": "abaplint.highlight.definitions",
"title": "ABAP Toggle Highlight Definitions",
"enablement": "editorLangId == 'abap'",
"category": "abaplint"
},
{
"command": "abaplint.dumpstatementflows",
"title": "ABAP dump flows for current file",
"enablement": "editorLangId == 'abap'",
"category": "abaplint"
},
{
"command": "abaplint.highlight.reads",
"title": "ABAP Toggle Highlight Reads",
"enablement": "editorLangId == 'abap'",
"category": "abaplint"
},
{
"command": "abaplint.highlight.writes",
"title": "ABAP Toggle Highlight Writes",
"enablement": "editorLangId == 'abap'",
"category": "abaplint"
},
{
"command": "abaplint.create.default-config",
"title": "Create Default Config",
"category": "abaplint"
},
{
"command": "abaplint.togglediffNormalize",
"title": "Normalize files",
"icon": "$(law)",
"category": "abaplint"
}
],
"jsonValidation": [
{
"fileMatch": "abaplint.json",
"url": "https://schema.abaplint.org/schema.json"
},
{
"fileMatch": "abaplint.jsonc",
"url": "https://schema.abaplint.org/schema.json"
},
{
"fileMatch": "abaplint-downport.json",
"url": "https://schema.abaplint.org/schema.json"
},
{
"fileMatch": "abaplint-downport.jsonc",
"url": "https://schema.abaplint.org/schema.json"
},
{
"fileMatch": "abap_transpile.json",
"url": "https://schema.abaplint.org/transpiler.json"
},
{
"fileMatch": "abap_transpile.jsonc",
"url": "https://schema.abaplint.org/transpiler.json"
},
{
"fileMatch": "abaplint.json5",
"url": "https://schema.abaplint.org/schema.json"
},
{
"fileMatch": "abaplint-app.json",
"url": "https://schema.abaplint.app/schema.json"
},
{
"fileMatch": "abaplint-app.jsonc",
"url": "https://schema.abaplint.app/schema.json"
},
{
"fileMatch": "abaplint-app.json5",
"url": "https://schema.abaplint.app/schema.json"
}
],
"menus": {
"editor/title": [
{
"when": "editorLangId == 'abap'",
"command": "abaplint.show",
"group": "navigation"
},
{
"command": "abaplint.togglediffNormalize",
"group": "navigation",
"when": "isInDiffEditor && abaplint.IsNormalizerEnabled"
}
],
"file/newFile": [
{
"command": "abaplint.create.default-config",
"group": "abaplint@1"
}
]
},
"keybindings": [
{
"command": "editor.action.formatDocument",
"key": "shift+f1",
"when": "(editorLangId == 'abap' || editorLangId == 'abap_cds') && editorTextFocus && !editorReadonly"
},
{
"command": "workbench.action.files.save",
"key": "ctrl+f3",
"when": "editorLangId == 'abap' && editorTextFocus"
},
{
"command": "editor.action.commentLine",
"key": "ctrl+oem_102",
"when": "editorLangId == 'abap' && editorTextFocus && !editorReadonly"
},
{
"command": "editor.action.commentLine",
"key": "ctrl+shift+oem_102",
"when": "editorLangId == 'abap' && editorTextFocus && !editorReadonly"
},
{
"command": "abaplint.f1",
"key": "f1",
"when": "(editorLangId == 'abap' || editorLangId == 'abap_cds') && editorTextFocus"
}
],
"configuration": [
{
"order": 10,
"id": "semanticHighlighting",
"title": "Semantic Highlighting",
"properties": {
"abaplint.enableSemanticHighlighting": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "Enable semantic highlighting, requires restart"
}
}
},
{
"order": 20,
"id": "codeLens",
"title": "Code Lens",
"properties": {
"abaplint.codeLens.messageText": {
"type": "boolean",
"description": "Show message texts",
"default": true
},
"abaplint.codeLens.dynamicExceptions": {
"type": "boolean",
"description": "Show dynamic exceptions",
"default": true
}
}
},
{
"order": 30,
"id": "inlayHints",
"title": "Inlay Hints",
"properties": {
"abaplint.inlayHints.inferredTypes": {
"type": "boolean",
"description": "Show inferred types, requires restart",
"default": true
}
}
},
{
"order": 35,
"id": "outline",
"title": "Outline",
"properties": {
"abaplint.outline.disableForRemoteFilesystems": {
"type": "boolean",
"description": "Disable outline for remote filesystems (abap, adt)",
"default": true
}
}
},
{
"order": 40,
"id": "formatting",
"title": "Formatting",
"properties": {
"abaplint.formatting.enable": {
"order": 10,
"type": "boolean",
"description": "Enable document formatting, requires restart",
"default": true
},
"abaplint.formatting.experimental": {
"order": 20,
"type": "boolean",
"description": "Enable experimental document formatting, requires restart",
"default": false
},
"abaplint.formatting.disabled": {
"order": 30,
"type": "array",
"items": {
"type": "string"
},
"default": [
"avoid_use",
"unused_types",
"unused_variables",
"unused_methods"
],
"description": "List of rules that should not be triggered on formatting"
}
}
},
{
"order": 50,
"id": "codenormalization",
"title": "Diff code normalization for bitbucket",
"properties": {
"abaplint.codeNormalization": {
"type": "string",
"enum": [
"On by default",
"Off by default",
"deactivated"
],
"default": "Off by default"
}
}
},
{
"order": 60,
"id": "fallback",
"title": "Fallback",
"properties": {
"abaplint.fallback.native": {
"order": 10,
"type": "integer",
"description": "File threshold for falling back to only single-file rules with native version, requires restart",
"default": 10000
},
"abaplint.fallback.web": {
"order": 20,
"type": "integer",
"description": "File threshold for falling back to only single-file rules with web version, requires restart",
"default": 1000
}
}
},
{
"order": 70,
"id": "remoteFileSystem",
"title": "Remote File System",
"properties": {
"abaplint.localConfigPath": {
"type": "string",
"description": "Path to a local abaplint.json file to use when working with remote file systems. Leave empty to search for config in the remote workspace.",
"default": ""
}
}
}
]
},
"scripts": {
"lint": "eslint client/src/**/*.ts server/src/**/*.ts",
"vscode:prepublish": "npm run compile",
"webpack:native": "webpack --mode none --config ./native.webpack.config.js",
"webpack:browser": "webpack --config ./browser.webpack.config.js",
"compile:client": "tsc -p ./client/tsconfig.json",
"compile:server": "tsc -p ./server/tsconfig.json",
"watch:client": "tsc -w -p ./client/tsconfig.json",
"watch:server": "tsc -w -p ./server/tsconfig.json",
"compile": "npm run compile:client && npm run compile:server && npm run webpack:native && npm run webpack:browser",
"test": "npm run compile && npm run lint",
"chrome": "npm run compile && vscode-test-web --browserType=chromium --extensionDevelopmentPath=.",
"install": "npm install && cd client && npm install && cd .. && cd server && npm install && cd .."
},
"extensionDependencies": [
"larshp.vscode-abap"
],
"sponsor": {
"url": "https://github.com/sponsors/larshp"
},
"devDependencies": {
"@eslint/compat": "^2.0.2",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.4",
"@types/mocha": "^10.0.10",
"@types/node": "^22.19.17",
"@typescript-eslint/eslint-plugin": "^8.57.1",
"@typescript-eslint/parser": "^8.57.1",
"@vscode/test-web": "^0.0.66",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.1",
"eslint": "^9.39.4",
"globals": "^17.5.0",
"merge-options": "^3.0.4",
"path-browserify": "^1.0.1",
"ts-loader": "^9.5.4",
"typescript": "^5.9.3",
"vm-browserify": "^1.1.2",
"webpack": "^5.106.2",
"webpack-cli": "^7.0.2"
}
}