-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
531 lines (531 loc) · 19.5 KB
/
package.json
File metadata and controls
531 lines (531 loc) · 19.5 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
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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
{
"name": "vscode-function-explorer",
"displayName": "Function Explorer",
"description": "Function explorer and marked functions.",
"icon": "images/icon.png",
"version": "0.1.9",
"engines": {
"vscode": "^1.100.0"
},
"keywords": [
"function explorer",
"function list",
"function navigation",
"code outline",
"bookmark",
"code navigation",
"jump to function",
"sidebar explorer",
"function finder"
],
"categories": [
"Other",
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/eridien/vscode-function-explorer"
},
"publisher": "eridien",
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"": "======================",
"": " keys ",
"": "......................",
"commands": [
{
"command": "vscode-function-explorer.toggle",
"title": "Toggle Function Mark",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.prev",
"title": "Jump To Previous Mark",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.next",
"title": "Jump To Next Mark",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.prevFunction",
"title": "Jump To Previous Function",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.nextFunction",
"title": "Jump To Next Function",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.showNodes",
"title": "Show Syntax Nodes",
"category": "Function Explorer"
},
{
"": "======================",
"": " Sidebar title menu ",
"": "......................",
"command": "vscode-function-explorer.removeAllMarksMenu",
"title": "Remove All Marks",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.showOnlyMarks",
"title": "Show All Marks",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.collapseAllItems",
"title": "Collapse All",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.refresh",
"title": "Refresh",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.showFolders",
"title": "Show Folders",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.hideFolders",
"title": "Hide Folders",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.openEditorsAsPinned",
"title": "Open Editors As Pinned",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.openEditorsAsPreview",
"title": "Open Editors As Preview",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.showFilePaths",
"title": "Show File Paths",
"category": "Function Explorer"
},
{
"command": "vscode-function-explorer.settingsMenu",
"title": "Open Settings",
"category": "Function Explorer"
},
{
"": "=========================",
"": " Sidebar file item menu ",
"": ".........................",
"command": "vscode-function-explorer.toggleMarkedFilterMenu",
"title": "Toggle Mark Filter"
},
{
"command": "vscode-function-explorer.toggleAlphaSortMenu",
"title": "Toggle Alpha Sort"
},
{
"command": "vscode-function-explorer.removeMarksMenu",
"title": "Remove Marks"
},
{
"command": "vscode-function-explorer.openFileMenu",
"title": "Open File"
},
{
"": "=================================",
"": " Sidebar file item icon buttons ",
"": ".................................",
"command": "vscode-function-explorer.toggleMarkedFilter",
"title": " ✔ ",
"category": "Function Explorer: Toggle Mark Filter"
},
{
"command": "vscode-function-explorer.toggleAlphaSort",
"title": " A ",
"category": "Function Explorer: Toggle Alpha Sort"
},
{
"command": "vscode-function-explorer.removeMarks",
"title": " ⨉ ",
"category": "Function Explorer: Remove Marks"
},
{
"command": "vscode-function-explorer.openFile",
"title": " ▶ ",
"category": "Function Explorer: Open File"
},
{
"": "=====================================",
"": " Sidebar function item icon buttons ",
"": ".....................................",
"command": "vscode-function-explorer.toggleItemMark",
"title": " ◆ ",
"category": "Function Explorer: Toggle Function Mark"
},
{
"": "=============================",
"": " Sidebar function item menu ",
"": ".............................",
"command": "vscode-function-explorer.toggleItemMarkMenu",
"title": "Toggle Function Mark"
},
{
"": "==============================",
"": " Sidebar function item click ",
"": "..............................",
"command": "vscode-function-explorer.funcClickCmd",
"title": "Show the function in an editor.",
"category": "Vscode-function-explorer"
}
],
"keybindings": [
{
"command": "vscode-function-explorer.toggle",
"key": "ctrl+alt+\\",
"mac": "cmd+alt+\\",
"when": "editorTextFocus"
},
{
"command": "vscode-function-explorer.prev",
"key": "ctrl+alt+[",
"mac": "cmd+alt+["
},
{
"command": "vscode-function-explorer.next",
"key": "ctrl+alt+]",
"mac": "cmd+alt+]"
},
{
"command": "vscode-function-explorer.prevFunction",
"key": "ctrl+alt+shift+[",
"mac": "cmd+alt+shift+["
},
{
"command": "vscode-function-explorer.nextFunction",
"key": "ctrl+alt+shift+]",
"mac": "cmd+alt+shift+]"
},
{
"command": "vscode-function-explorer.showNodes",
"key": "ctrl+alt+shift+\\",
"mac": "cmd+alt+shift+\\",
"when": "editorTextFocus"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "functionMarks",
"title": "Function Explorer",
"icon": "images/activity-icon.svg"
}
]
},
"views": {
"functionMarks": [
{
"id": "sidebarView",
"name": "Function Explorer",
"icon": "images/activity-icon.svg"
}
]
},
"menus": {
"editor/context": [
{
"command": "vscode-function-explorer.toggle",
"when": "editorTextFocus",
"group": "1_modification"
}
],
"view/title": [
{
"command": "vscode-function-explorer.removeAllMarksMenu",
"when": "view == sidebarView",
"group": "a"
},
{
"command": "vscode-function-explorer.showOnlyMarks",
"when": "view == sidebarView",
"group": "b"
},
{
"command": "vscode-function-explorer.collapseAllItems",
"when": "view == sidebarView",
"group": "c"
},
{
"command": "vscode-function-explorer.refresh",
"when": "view == sidebarView",
"group": "d"
},
{
"command": "vscode-function-explorer.showFolders",
"when": "view == sidebarView && foldersHidden",
"group": "e"
},
{
"command": "vscode-function-explorer.hideFolders",
"when": "view == sidebarView && !foldersHidden",
"group": "f"
},
{
"command": "vscode-function-explorer.openEditorsAsPinned",
"when": "view == sidebarView && !pinned",
"group": "e"
},
{
"command": "vscode-function-explorer.openEditorsAsPreview",
"when": "view == sidebarView && pinned",
"group": "f"
},
{
"command": "vscode-function-explorer.settingsMenu",
"when": "view == sidebarView",
"group": "g"
}
],
"view/item/context": [
{
"": "=====================================",
"": " Sidebar wsfolder item icon buttons ",
"": ".....................................",
"command": "vscode-function-explorer.removeMarks",
"when": "view == sidebarView && viewItem == wsFolder",
"group": "inline@1"
},
{
"": "===================================",
"": " Sidebar folder item icon buttons ",
"": "...................................",
"command": "vscode-function-explorer.removeMarks",
"when": "view == sidebarView && viewItem == folder",
"group": "inline@1"
},
{
"": "=================================",
"": " Sidebar file item icon buttons ",
"": ".................................",
"command": "vscode-function-explorer.toggleMarkedFilter",
"when": "view == sidebarView && viewItem == file",
"group": "inline@1"
},
{
"command": "vscode-function-explorer.toggleAlphaSort",
"when": "view == sidebarView && viewItem == file",
"group": "inline@2"
},
{
"command": "vscode-function-explorer.removeMarks",
"when": "view == sidebarView && viewItem == file",
"group": "inline@3"
},
{
"command": "vscode-function-explorer.openFile",
"when": "view == sidebarView && viewItem == file",
"group": "inline@4"
},
{
"": "=====================================",
"": " Sidebar function item icon buttons ",
"": ".....................................",
"command": "vscode-function-explorer.toggleItemMark",
"when": "view == sidebarView && viewItem == func",
"group": "inline@1"
},
{
"": "==============================",
"": " Sidebar wsfolder menu items ",
"": "..............................",
"command": "vscode-function-explorer.removeMarksMenu",
"when": "view == sidebarView && viewItem == wsFolder"
},
{
"": "============================",
"": " Sidebar folder menu items ",
"": "............................",
"command": "vscode-function-explorer.removeMarksMenu",
"when": "view == sidebarView && viewItem == folder"
},
{
"": "==========================",
"": " Sidebar file menu items ",
"": "..........................",
"command": "vscode-function-explorer.toggleMarkedFilterMenu",
"when": "view == sidebarView && viewItem == file"
},
{
"command": "vscode-function-explorer.toggleAlphaSortMenu",
"when": "view == sidebarView && viewItem == file"
},
{
"command": "vscode-function-explorer.removeMarksMenu",
"when": "view == sidebarView && viewItem == file"
},
{
"command": "vscode-function-explorer.openFileMenu",
"when": "view == sidebarView && viewItem == file"
},
{
"": "==============================",
"": " Sidebar function menu items ",
"": "..............................",
"command": "vscode-function-explorer.toggleItemMarkMenu",
"when": "view == sidebarView && viewItem == func"
}
]
},
"configuration": {
"properties": {
"function-explorer.hideRootFolders": {
"type": "boolean",
"default": false,
"order": 1,
"title": "Hide Root Folders",
"description": "Hide root folders from the tree. This is useful to reduce indentation and save space. This only applies when Hide Folders setting is off."
},
"function-explorer.hideFolders": {
"type": "boolean",
"default": true,
"order": 2,
"title": "Hide All Folders",
"description": "Hide all folders from the tree and show only files and functions. This setting can also be toggled in the Function Explorer sidebar menu. This is useful to reduce indentation and save space."
},
"function-explorer.openEditorsAsPinned": {
"type": "boolean",
"default": true,
"order": 3,
"title": "Open Editors As Pinned",
"description": "Open editors in pinned mode, not preview mode. When pinned, files opened will stay open until closed manually. This setting can also be toggled in the Function Explorer sidebar menu."
},
"function-explorer.showFilePaths": {
"type": "boolean",
"default": false,
"order": 4,
"title": "Show File Paths",
"description": "Show file path after filenames when folders are hidden."
},
"function-explorer.showBreadcrumbs": {
"type": "string",
"order": 5,
"default": "Show Breadcrumbs With Dittos",
"enum": [
"Never Show Breadcrumbs",
"Show Breadcrumbs With Dittos",
"Always Show Complete Breadcrumbs"
],
"enumDescriptions": [
"The space to the right of explorer function labels will always be blank.",
"Breadcrumbs, when available, will appear to the right of explorer function labels except for the breadcrumbs that are identical to the one above. Those matching will just show a ditto mark (quote character \"). This reduces clutter.",
"Breadcrumbs, when available, will always appear to the right of explorer function labels."
],
"title": "Breadcrumb Display",
"description": "Controls the breadcrumb display shown after the explorer function labels."
},
"function-explorer.openFileWhenExpanded": {
"type": "boolean",
"default": false,
"order": 6,
"title": "Open File When Expanded",
"description": "When expanding a file item in the explorer, open that file in an editor. Files can also be opened by selecting 'Open File' in the file menu or clicking on ▶."
},
"function-explorer.fileWrap": {
"type": "boolean",
"default": true,
"order": 7,
"title": "File Wrap",
"description": "Next and previous navigation will wrap around all files instead of just the active file."
},
"function-explorer.scrollPosition": {
"type": "string",
"order": 8,
"default": "Function Center At Center If Needed",
"enum": [
"Function Top At Top",
"Function Center At Center",
"Function Bottom At Bottom",
"Function Top At Top If Needed",
"Function Center At Center If Needed"
],
"enumDescriptions": [
"Align the top of the function (with margin) to the top of the viewport.",
"Align the center of the function to the center of the viewport.",
"Align the bottom of the function to the bottom of the viewport.",
"Align the top of the function (with margin) to the top of the viewport, if needed.",
"Align the center of the function to the center of the viewport, if needed."
],
"title": "Scroll Position",
"description": "Controls the scroll position when revealing a function."
},
"function-explorer.topMargin": {
"type": "number",
"default": 3,
"minimum": 0,
"maximum": 30,
"order": 9,
"title": "Top Margin",
"description": "Number of margin lines above function when scrolling with \"Function Top At Top\"."
},
"function-explorer.alphaSortFunctions": {
"type": "boolean",
"default": false,
"order": 10,
"title": "Alpha Sort Functions",
"description": "Sort functions in all files alphabetically instead of by position. This only applies when activating the extension. Then it can be toggled in the sidebar file \"A\" button separately for each file."
},
"function-explorer.maxWatchers": {
"type": "number",
"default": 300,
"minimum": 10,
"maximum": 1000,
"order": 11,
"title": "Maximum Number Of File Watchers",
"description": "Maximum number of file watchers. If there are more files than this number, all watching will cease. This only affects watching for file creation, deletion, and modification. Add more file exclusions to reduce the number of watched files."
},
"function-explorer.filesToExclude": {
"type": "string",
"default": "node_modules/",
"order": 12,
"title": "Files/Folders To Exclude",
"description": "Files/Folders to exclude in the explorer. Separate glob patterns with commas. To exclude a directory end the glob pattern with a slash (/), not /**. A sample file is **/*.js and a sample folder is node_modules/."
}
}
}
},
"scripts": {
"build": "npm run compile",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p .",
"watch": "tsc -p . -w",
"rebuild": "rm -rf node_modules package-lock.json && npm install",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext .ts,.tsx",
"test": "vscode-test"
},
"devDependencies": {
"@types/babel__parser": "^7.0.0",
"@types/babel__traverse": "^7.20.7",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.100.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.23.0",
"typescript": "^5.8.3"
},
"dependencies": {
"chokidar": "^4.0.3",
"minimatch": "^10.0.3",
"tree-sitter": "^0.25.0",
"web-tree-sitter": "^0.25.6"
}
}