@lvce-editor/shared-process 0.0.24 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/defaultKeyBindings.json +102 -97
- package/package.json +3 -3
- package/src/parts/ErrorHandling/ErrorHandling.js +1 -1
- package/src/parts/ExtensionManagement/ExtensionManagement.js +5 -1
- package/src/parts/ParentIpc/ParentIpc.js +0 -3
- package/src/parts/Preferences/Preferences.js +0 -2
- package/src/parts/Stats/Stats.js +4 -3
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
{
|
|
23
23
|
"key": "ctrl+ArrowRight",
|
|
24
24
|
"command": "Editor.cursorWordRight",
|
|
25
|
-
"when": "focus.
|
|
25
|
+
"when": "focus.EditorText"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"key": "ctrl+ArrowLeft",
|
|
29
29
|
"command": "Editor.cursorWordLeft",
|
|
30
|
-
"when": "focus.
|
|
30
|
+
"when": "focus.EditorText"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"key": "alt+Backspace",
|
|
34
34
|
"command": "Editor.deleteWordPartLeft",
|
|
35
|
-
"when": "focus.
|
|
35
|
+
"when": "focus.EditorText"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"key": "alt+Delete",
|
|
39
39
|
"command": "Editor.deleteWordPartRight",
|
|
40
|
-
"when": "focus.
|
|
40
|
+
"when": "focus.EditorText"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"key": "ctrl+Backspace",
|
|
44
44
|
"command": "Editor.deleteWordLeft",
|
|
45
|
-
"when": "focus.
|
|
45
|
+
"when": "focus.EditorText"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"key": "Enter",
|
|
@@ -57,67 +57,67 @@
|
|
|
57
57
|
{
|
|
58
58
|
"key": "ctrl+Delete",
|
|
59
59
|
"command": "Editor.deleteWordRight",
|
|
60
|
-
"when": "focus.
|
|
60
|
+
"when": "focus.EditorText"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"key": "ctrl+d",
|
|
64
64
|
"command": "Editor.selectNextOccurrence",
|
|
65
|
-
"when": "focus.
|
|
65
|
+
"when": "focus.EditorText"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"key": "Tab",
|
|
69
69
|
"command": "Editor.handleTab",
|
|
70
|
-
"when": "focus.
|
|
70
|
+
"when": "focus.EditorText"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"key": "shift+Tab",
|
|
74
74
|
"command": "Editor.unindent",
|
|
75
|
-
"when": "focus.
|
|
75
|
+
"when": "focus.EditorText"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"key": "ctrl+[",
|
|
79
79
|
"command": "Editor.indentLess",
|
|
80
|
-
"when": "focus.
|
|
80
|
+
"when": "focus.EditorText"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"key": "ctrl+]",
|
|
84
84
|
"command": "Editor.indentMore",
|
|
85
|
-
"when": "focus.
|
|
85
|
+
"when": "focus.EditorText"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "shift+ArrowLeft",
|
|
89
89
|
"command": "Editor.selectCharacterLeft",
|
|
90
|
-
"when": "focus.
|
|
90
|
+
"when": "focus.EditorText"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"key": "ctrl+shift+ArrowLeft",
|
|
94
94
|
"command": "Editor.selectWordLeft",
|
|
95
|
-
"when": "focus.
|
|
95
|
+
"when": "focus.EditorText"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"key": "shift+ArrowRight",
|
|
99
99
|
"command": "Editor.selectCharacterRight",
|
|
100
|
-
"when": "focus.
|
|
100
|
+
"when": "focus.EditorText"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"key": "ctrl+shift+ArrowRight",
|
|
104
104
|
"command": "Editor.selectWordRight",
|
|
105
|
-
"when": "focus.
|
|
105
|
+
"when": "focus.EditorText"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"key": "ctrl+l",
|
|
109
109
|
"command": "Editor.selectLine",
|
|
110
|
-
"when": "focus.
|
|
110
|
+
"when": "focus.EditorText"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"key": "ctrl+shift+Backspace",
|
|
114
114
|
"command": "Editor.deleteAllLeft",
|
|
115
|
-
"when": "focus.
|
|
115
|
+
"when": "focus.EditorText"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"key": "ctrl+shift+Delete",
|
|
119
119
|
"command": "Editor.deleteAllRight",
|
|
120
|
-
"when": "focus.
|
|
120
|
+
"when": "focus.EditorText"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"key": "ctrl+s",
|
|
@@ -143,12 +143,12 @@
|
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"key": "ctrl+Enter",
|
|
146
|
-
"command": "
|
|
146
|
+
"command": "SourceControl.acceptInput",
|
|
147
147
|
"when": "focus.sourceControlInput"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"key": "ctrl+n",
|
|
151
|
-
"command": "
|
|
151
|
+
"command": "Explorer.newFile"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"key": "ctrl+p",
|
|
@@ -236,128 +236,133 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"key": "ArrowRight",
|
|
239
|
-
"command": "
|
|
240
|
-
"when": "focus.
|
|
239
|
+
"command": "Explorer.handleArrowRight",
|
|
240
|
+
"when": "focus.Explorer"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"key": "ArrowLeft",
|
|
244
|
-
"command": "
|
|
245
|
-
"when": "focus.
|
|
244
|
+
"command": "Explorer.handleArrowLeft",
|
|
245
|
+
"when": "focus.Explorer"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"key": "Home",
|
|
249
|
-
"command": "
|
|
250
|
-
"when": "focus.
|
|
249
|
+
"command": "Explorer.focusFirst",
|
|
250
|
+
"when": "focus.Explorer"
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"key": "End",
|
|
254
|
-
"command": "
|
|
255
|
-
"when": "focus.
|
|
254
|
+
"command": "Explorer.focusLast",
|
|
255
|
+
"when": "focus.Explorer"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"key": "ArrowUp",
|
|
259
|
-
"command": "
|
|
260
|
-
"when": "focus.
|
|
259
|
+
"command": "Explorer.focusPrevious",
|
|
260
|
+
"when": "focus.Explorer"
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"key": "ArrowDown",
|
|
264
|
-
"command": "
|
|
265
|
-
"when": "focus.
|
|
264
|
+
"command": "Explorer.focusNext",
|
|
265
|
+
"when": "focus.Explorer"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"key": "shift+*",
|
|
269
|
-
"command": "
|
|
270
|
-
"when": "focus.
|
|
269
|
+
"command": "Explorer.expandAll",
|
|
270
|
+
"when": "focus.Explorer"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"key": "ctrl+ArrowLeft",
|
|
274
|
-
"command": "
|
|
275
|
-
"when": "focus.
|
|
274
|
+
"command": "Explorer.collapseAll",
|
|
275
|
+
"when": "focus.Explorer"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"key": "Home",
|
|
279
|
-
"command": "
|
|
280
|
-
"when": "focus.
|
|
279
|
+
"command": "Extensions.focusFirst",
|
|
280
|
+
"when": "focus.Extensions"
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"key": "End",
|
|
284
|
-
"command": "
|
|
285
|
-
"when": "focus.
|
|
284
|
+
"command": "Extensions.focusLast",
|
|
285
|
+
"when": "focus.Extensions"
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"key": "PageUp",
|
|
289
|
-
"command": "
|
|
290
|
-
"when": "focus.
|
|
289
|
+
"command": "Extensions.focusPreviousPage",
|
|
290
|
+
"when": "focus.Extensions"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"key": "PageDown",
|
|
294
|
-
"command": "
|
|
295
|
-
"when": "focus.
|
|
294
|
+
"command": "Extensions.focusNextPage",
|
|
295
|
+
"when": "focus.Extensions"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"key": "ArrowUp",
|
|
299
|
-
"command": "
|
|
300
|
-
"when": "focus.
|
|
299
|
+
"command": "Extensions.focusPrevious",
|
|
300
|
+
"when": "focus.Extensions"
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
"key": "ArrowDown",
|
|
304
|
-
"command": "
|
|
305
|
-
"when": "focus.
|
|
304
|
+
"command": "Extensions.focusNext",
|
|
305
|
+
"when": "focus.Extensions"
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
308
|
"key": "ctrl+Space",
|
|
309
|
-
"command": "
|
|
310
|
-
"when": "focus.
|
|
309
|
+
"command": "Extensions.toggleSuggest",
|
|
310
|
+
"when": "focus.Extensions"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"key": "F2",
|
|
314
|
-
"command": "
|
|
315
|
-
"when": "focus.
|
|
314
|
+
"command": "Explorer.rename",
|
|
315
|
+
"when": "focus.Explorer"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"key": "Escape",
|
|
319
|
-
"command": "
|
|
320
|
-
"when": "focus.
|
|
319
|
+
"command": "Explorer.cancelRename",
|
|
320
|
+
"when": "focus.ExplorerRename"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
"key": "Enter",
|
|
324
|
-
"command": "
|
|
325
|
-
"when": "focus.
|
|
324
|
+
"command": "Explorer.acceptRename",
|
|
325
|
+
"when": "focus.ExplorerRename"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"key": "Escape",
|
|
329
|
-
"command": "
|
|
330
|
-
"when": "focus.
|
|
329
|
+
"command": "Explorer.cancelNewFile",
|
|
330
|
+
"when": "focus.ExplorerCreateFile"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"key": "Enter",
|
|
334
|
-
"command": "
|
|
335
|
-
"when": "focus.
|
|
334
|
+
"command": "Explorer.acceptNewFile",
|
|
335
|
+
"when": "focus.ExplorerCreateFile"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"key": "Delete",
|
|
339
|
-
"command": "
|
|
340
|
-
"when": "focus.
|
|
339
|
+
"command": "Explorer.removeDirent",
|
|
340
|
+
"when": "focus.Explorer"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"key": "Escape",
|
|
344
|
+
"command": "Explorer.focusNone",
|
|
345
|
+
"when": "focus.Explorer"
|
|
341
346
|
},
|
|
342
347
|
{
|
|
343
348
|
"key": "Space",
|
|
344
|
-
"command": "
|
|
345
|
-
"when": "focus.
|
|
349
|
+
"command": "Explorer.handleClickCurrent",
|
|
350
|
+
"when": "focus.Explorer"
|
|
346
351
|
},
|
|
347
352
|
{
|
|
348
353
|
"key": "Enter",
|
|
349
|
-
"command": "
|
|
350
|
-
"when": "focus.
|
|
354
|
+
"command": "Explorer.handleClickCurrent",
|
|
355
|
+
"when": "focus.Explorer"
|
|
351
356
|
},
|
|
352
357
|
{
|
|
353
358
|
"key": "Escape",
|
|
354
359
|
"command": "Editor.cancelSelection",
|
|
355
|
-
"when": "focus.
|
|
360
|
+
"when": "focus.EditorText"
|
|
356
361
|
},
|
|
357
362
|
{
|
|
358
363
|
"key": "ctrl+z",
|
|
359
364
|
"command": "Editor.undo",
|
|
360
|
-
"when": "focus.
|
|
365
|
+
"when": "focus.EditorText"
|
|
361
366
|
},
|
|
362
367
|
{
|
|
363
368
|
"key": "ctrl+,",
|
|
@@ -366,42 +371,42 @@
|
|
|
366
371
|
{
|
|
367
372
|
"key": "ArrowLeft",
|
|
368
373
|
"command": "Editor.cursorLeft",
|
|
369
|
-
"when": "focus.
|
|
374
|
+
"when": "focus.EditorText"
|
|
370
375
|
},
|
|
371
376
|
{
|
|
372
377
|
"key": "ArrowRight",
|
|
373
378
|
"command": "Editor.cursorRight",
|
|
374
|
-
"when": "focus.
|
|
379
|
+
"when": "focus.EditorText"
|
|
375
380
|
},
|
|
376
381
|
{
|
|
377
382
|
"key": "ArrowUp",
|
|
378
383
|
"command": "Editor.cursorUp",
|
|
379
|
-
"when": "focus.
|
|
384
|
+
"when": "focus.EditorText"
|
|
380
385
|
},
|
|
381
386
|
{
|
|
382
387
|
"key": "ArrowDown",
|
|
383
388
|
"command": "Editor.cursorDown",
|
|
384
|
-
"when": "focus.
|
|
389
|
+
"when": "focus.EditorText"
|
|
385
390
|
},
|
|
386
391
|
{
|
|
387
392
|
"key": "Backspace",
|
|
388
393
|
"command": "Editor.deleteLeft",
|
|
389
|
-
"when": "focus.
|
|
394
|
+
"when": "focus.EditorText"
|
|
390
395
|
},
|
|
391
396
|
{
|
|
392
397
|
"key": "Delete",
|
|
393
398
|
"command": "Editor.deleteRight",
|
|
394
|
-
"when": "focus.
|
|
399
|
+
"when": "focus.EditorText"
|
|
395
400
|
},
|
|
396
401
|
{
|
|
397
402
|
"key": "Enter",
|
|
398
403
|
"command": "Editor.insertLineBreak",
|
|
399
|
-
"when": "focus.
|
|
404
|
+
"when": "focus.EditorText"
|
|
400
405
|
},
|
|
401
406
|
{
|
|
402
407
|
"key": "ctrl+shift+d",
|
|
403
408
|
"command": "Editor.copyLineDown",
|
|
404
|
-
"when": "focus.
|
|
409
|
+
"when": "focus.EditorText"
|
|
405
410
|
},
|
|
406
411
|
{
|
|
407
412
|
"key": "ctrl+shift+d",
|
|
@@ -411,37 +416,37 @@
|
|
|
411
416
|
{
|
|
412
417
|
"key": "ctrl+shift+ArrowDown",
|
|
413
418
|
"command": "Editor.moveLineDown",
|
|
414
|
-
"when": "focus.
|
|
419
|
+
"when": "focus.EditorText"
|
|
415
420
|
},
|
|
416
421
|
{
|
|
417
422
|
"key": "ctrl+shift+ArrowUp",
|
|
418
423
|
"command": "Editor.moveLineUp",
|
|
419
|
-
"when": "focus.
|
|
424
|
+
"when": "focus.EditorText"
|
|
420
425
|
},
|
|
421
426
|
{
|
|
422
427
|
"key": "ctrl+Space",
|
|
423
428
|
"command": "Editor.openCompletion",
|
|
424
|
-
"when": "focus.
|
|
429
|
+
"when": "focus.EditorText"
|
|
425
430
|
},
|
|
426
431
|
{
|
|
427
432
|
"key": "F2",
|
|
428
433
|
"command": "EditorRename.open",
|
|
429
|
-
"when": "focus.
|
|
434
|
+
"when": "focus.EditorText"
|
|
430
435
|
},
|
|
431
436
|
{
|
|
432
437
|
"key": "Home",
|
|
433
438
|
"command": "Editor.cursorHome",
|
|
434
|
-
"when": "focus.
|
|
439
|
+
"when": "focus.EditorText"
|
|
435
440
|
},
|
|
436
441
|
{
|
|
437
442
|
"key": "End",
|
|
438
443
|
"command": "Editor.cursorEnd",
|
|
439
|
-
"when": "focus.
|
|
444
|
+
"when": "focus.EditorText"
|
|
440
445
|
},
|
|
441
446
|
{
|
|
442
447
|
"key": "ctrl+/",
|
|
443
448
|
"command": "Editor.toggleComment",
|
|
444
|
-
"when": "focus.
|
|
449
|
+
"when": "focus.EditorText"
|
|
445
450
|
},
|
|
446
451
|
{
|
|
447
452
|
"key": "ArrowDown",
|
|
@@ -496,22 +501,22 @@
|
|
|
496
501
|
{
|
|
497
502
|
"key": "ctrl+c",
|
|
498
503
|
"command": "Editor.copy",
|
|
499
|
-
"when": "focus.
|
|
504
|
+
"when": "focus.EditorText"
|
|
500
505
|
},
|
|
501
506
|
{
|
|
502
507
|
"key": "ctrl+a",
|
|
503
508
|
"command": "Editor.selectAll",
|
|
504
|
-
"when": "focus.
|
|
509
|
+
"when": "focus.EditorText"
|
|
505
510
|
},
|
|
506
511
|
{
|
|
507
512
|
"key": "alt+ArrowLeft",
|
|
508
513
|
"command": "Editor.cursorWordPartLeft",
|
|
509
|
-
"when": "focus.
|
|
514
|
+
"when": "focus.EditorText"
|
|
510
515
|
},
|
|
511
516
|
{
|
|
512
517
|
"key": "alt+ArrowRight",
|
|
513
518
|
"command": "Editor.cursorWordPartRight",
|
|
514
|
-
"when": "focus.
|
|
519
|
+
"when": "focus.EditorText"
|
|
515
520
|
},
|
|
516
521
|
{
|
|
517
522
|
"key": "ctrl+w",
|
|
@@ -533,7 +538,7 @@
|
|
|
533
538
|
{
|
|
534
539
|
"key": "alt+F3",
|
|
535
540
|
"command": "Editor.selectAllOccurrences",
|
|
536
|
-
"when": "focus.
|
|
541
|
+
"when": "focus.EditorText"
|
|
537
542
|
},
|
|
538
543
|
{
|
|
539
544
|
"key": "ctrl+g",
|
|
@@ -559,13 +564,13 @@
|
|
|
559
564
|
},
|
|
560
565
|
{
|
|
561
566
|
"key": "ctrl+v",
|
|
562
|
-
"command": "
|
|
563
|
-
"when": "focus.
|
|
567
|
+
"command": "Explorer.handlePaste",
|
|
568
|
+
"when": "focus.Explorer"
|
|
564
569
|
},
|
|
565
570
|
{
|
|
566
571
|
"key": "ctrl+c",
|
|
567
|
-
"command": "
|
|
568
|
-
"when": "focus.
|
|
572
|
+
"command": "Explorer.handleCopy",
|
|
573
|
+
"when": "focus.Explorer"
|
|
569
574
|
},
|
|
570
575
|
{
|
|
571
576
|
"key": "ArrowDown",
|
|
@@ -623,27 +628,27 @@
|
|
|
623
628
|
},
|
|
624
629
|
{
|
|
625
630
|
"key": "ArrowDown",
|
|
626
|
-
"command": "
|
|
631
|
+
"command": "Locations.focusNext",
|
|
627
632
|
"when": "focus.locationList"
|
|
628
633
|
},
|
|
629
634
|
{
|
|
630
635
|
"key": "ArrowUp",
|
|
631
|
-
"command": "
|
|
636
|
+
"command": "Locations.focusPrevious",
|
|
632
637
|
"when": "focus.locationList"
|
|
633
638
|
},
|
|
634
639
|
{
|
|
635
640
|
"key": "Home",
|
|
636
|
-
"command": "
|
|
641
|
+
"command": "Locations.focusFirst",
|
|
637
642
|
"when": "focus.locationList"
|
|
638
643
|
},
|
|
639
644
|
{
|
|
640
645
|
"key": "End",
|
|
641
|
-
"command": "
|
|
646
|
+
"command": "Locations.focusLast",
|
|
642
647
|
"when": "focus.locationList"
|
|
643
648
|
},
|
|
644
649
|
{
|
|
645
650
|
"key": "Enter",
|
|
646
|
-
"command": "
|
|
651
|
+
"command": "Locations.selectCurrent",
|
|
647
652
|
"when": "focus.locationList"
|
|
648
653
|
}
|
|
649
654
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"verror": "^1.10.1",
|
|
32
32
|
"ws": "^8.8.0",
|
|
33
33
|
"xdg-basedir": "^5.1.0",
|
|
34
|
-
"@lvce-editor/pty-host": "0.0.
|
|
35
|
-
"@lvce-editor/extension-host": "0.0.
|
|
34
|
+
"@lvce-editor/pty-host": "0.0.27",
|
|
35
|
+
"@lvce-editor/extension-host": "0.0.27"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
38
|
"electron-clipboard-ex": "^1.3.3",
|
|
@@ -27,7 +27,7 @@ export const handleError = (error) => {
|
|
|
27
27
|
const prettyError = preparePrettyError(error)
|
|
28
28
|
Socket.send({
|
|
29
29
|
jsonrpc: '2.0',
|
|
30
|
-
method: /* Dialog.showErrorDialogWithOptions */
|
|
30
|
+
method: /* Dialog.showErrorDialogWithOptions */ 'Dialog.showMessage',
|
|
31
31
|
params: [
|
|
32
32
|
{
|
|
33
33
|
message: prettyError.message,
|
|
@@ -10,6 +10,10 @@ import * as Platform from '../Platform/Platform.js'
|
|
|
10
10
|
import * as Queue from '../Queue/Queue.js'
|
|
11
11
|
import path from 'node:path'
|
|
12
12
|
|
|
13
|
+
const isLanguageBasics = (extension) => {
|
|
14
|
+
return extension.id.includes('language-basics')
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
export const state = {
|
|
14
18
|
async getExtensions() {
|
|
15
19
|
// TODO only read from env once
|
|
@@ -17,7 +21,7 @@ export const state = {
|
|
|
17
21
|
if (process.env.ONLY_EXTENSION) {
|
|
18
22
|
const absolutePath = path.resolve(process.env.ONLY_EXTENSION)
|
|
19
23
|
const onlyExtension = await getExtensionManifests([absolutePath])
|
|
20
|
-
return [...builtinExtensions, ...onlyExtension]
|
|
24
|
+
return [...builtinExtensions.filter(isLanguageBasics), ...onlyExtension]
|
|
21
25
|
}
|
|
22
26
|
const installedExtensions = await getInstalledExtensions()
|
|
23
27
|
return [...builtinExtensions, ...installedExtensions]
|
|
@@ -46,10 +46,8 @@ const handleMessageFromParentProcess = async (message, handle) => {
|
|
|
46
46
|
} else if (message.result) {
|
|
47
47
|
Callback.resolve(message.id, message.result)
|
|
48
48
|
} else if (message.method) {
|
|
49
|
-
console.log({ message })
|
|
50
49
|
if (message.id) {
|
|
51
50
|
try {
|
|
52
|
-
console.log('INISDE HERE')
|
|
53
51
|
const result = requiresSocket(message.method)
|
|
54
52
|
? await Command.invoke(message.method, handle, ...message.params)
|
|
55
53
|
: await Command.invoke(message.method, ...message.params)
|
|
@@ -179,7 +177,6 @@ const handleMessageFromParentProcessElectron = async (message) => {
|
|
|
179
177
|
electronInitialize(message)
|
|
180
178
|
return
|
|
181
179
|
}
|
|
182
|
-
console.log({ message })
|
|
183
180
|
if ('result' in message) {
|
|
184
181
|
Callback.resolve(message.id, message.result)
|
|
185
182
|
return
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { join } from 'node:path'
|
|
2
1
|
import VError from 'verror'
|
|
3
2
|
import * as JsonFile from '../JsonFile/JsonFile.js'
|
|
4
3
|
import * as Platform from '../Platform/Platform.js'
|
|
5
4
|
|
|
6
|
-
const CACHED_SETTINGS_PATH = '~/.cache/vscode/cachedSettings.json'
|
|
7
5
|
// TODO need jsonc parser for settings with comments
|
|
8
6
|
|
|
9
7
|
export const getUserPreferences = async () => {
|
package/src/parts/Stats/Stats.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
// parse ps output based on vscode https://github.com/microsoft/vscode/blob/c0769274fa136b45799edeccc0d0a2f645b75caf/src/vs/base/node/ps.ts (License MIT)
|
|
2
|
+
|
|
1
3
|
import * as Exec from '../Exec/Exec.js'
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
const PID_CMD =
|
|
6
|
+
/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/
|
|
4
7
|
|
|
5
8
|
const parsePsOutputLine = (line) => {
|
|
6
|
-
const PID_CMD =
|
|
7
|
-
/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/
|
|
8
9
|
const matches = PID_CMD.exec(line.trim())
|
|
9
10
|
if (matches && matches.length === 6) {
|
|
10
11
|
return {
|