@lvce-editor/editor-worker 16.9.0 → 16.10.0
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/dist/editorWorkerMain.js +124 -163
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -11293,33 +11293,6 @@ const updateDebugInfo = async debugId => {
|
|
|
11293
11293
|
await invoke$d('Editor.rerender', key);
|
|
11294
11294
|
};
|
|
11295
11295
|
|
|
11296
|
-
const keep = ['ActivateByEvent.activateByEvent', 'ExtensionHostManagement.activateByEvent', 'Editor.applyEdit2', 'Editor.applyEdits2', 'Editor.closeFind2', 'Editor.closeWidget2', 'Editor.create', 'Editor.getKeyBindings', 'Editor.getSourceActions', 'Editor.getLines2', 'Editor.getPositionAtCursor', 'Editor.getOffsetAtCursor', 'Editor.getQuickPickMenuEntries', 'Editor.getSelections', 'Editor.hotReload', 'Editor.getSelections2', 'Editor.getDiagnostics', 'Editor.getText', 'Editor.getWordAt', 'Editor.getWordAt2', 'Editor.getWordAtOffset2', 'Editor.getUri', 'Editor.getWordBefore', 'Editor.getWordBefore2', 'Editor.offsetAt', 'Editor.render', 'Editor.setSelections2', 'Editor.updateDebugInfo', 'Editor.getLanguageId', 'Editor.getProblems', 'Editor.getKeys', 'Editor.getMenuIds', 'Editor.getMenuEntries', 'Editor.getMenuEntries2', 'Font.ensure', 'HandleMessagePort.handleMessagePort', 'Hover.getHoverInfo', 'Hover.handleSashPointerDown', 'Hover.handleSashPointerMove', 'Hover.handleSashPointerUp', 'Hover.loadContent', 'Hover.render', 'Initialize.initialize', 'SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker'
|
|
11297
|
-
// 'ColorPicker.handleSliderPointerDown',
|
|
11298
|
-
// 'ColorPicker.handleSliderPointerMove',
|
|
11299
|
-
// 'ColorPicker.loadContent',
|
|
11300
|
-
// 'ColorPicker.render',
|
|
11301
|
-
];
|
|
11302
|
-
|
|
11303
|
-
const wrapWidgetCommand = (widgetId, fn) => {
|
|
11304
|
-
const isWidget = widget => {
|
|
11305
|
-
return widget.id === widgetId;
|
|
11306
|
-
};
|
|
11307
|
-
const wrapped = async (editor, ...args) => {
|
|
11308
|
-
const childIndex = editor.widgets.findIndex(isWidget);
|
|
11309
|
-
// TODO scroll up/down if necessary
|
|
11310
|
-
const childWidget = editor.widgets[childIndex];
|
|
11311
|
-
const newState = await fn(childWidget.newState, ...args);
|
|
11312
|
-
const newEditor = updateWidget(editor, widgetId, newState);
|
|
11313
|
-
return newEditor;
|
|
11314
|
-
};
|
|
11315
|
-
return wrapped;
|
|
11316
|
-
};
|
|
11317
|
-
|
|
11318
|
-
const widgetCommands = {
|
|
11319
|
-
'ColorPicker.handleSliderPointerDown': ColorPicker$1,
|
|
11320
|
-
'ColorPicker.handleSliderPointerMove': ColorPicker$1
|
|
11321
|
-
};
|
|
11322
|
-
|
|
11323
11296
|
// TODO wrap commands globally, not per editor
|
|
11324
11297
|
// TODO only store editor state in editor worker, not in renderer worker also
|
|
11325
11298
|
|
|
@@ -11341,72 +11314,61 @@ const wrapCommand = fn => async (editorUid, ...args) => {
|
|
|
11341
11314
|
commands
|
|
11342
11315
|
};
|
|
11343
11316
|
};
|
|
11344
|
-
const wrapCommands = commands => {
|
|
11345
|
-
for (const [key, value] of Object.entries(commands)) {
|
|
11346
|
-
if (keep.includes(key)) {
|
|
11347
|
-
continue;
|
|
11348
|
-
}
|
|
11349
|
-
// TODO avoid wrapping functions twice
|
|
11350
|
-
const innerWrappedWidgetId = widgetCommands[key];
|
|
11351
|
-
const innerWrappedFn = innerWrappedWidgetId ? wrapWidgetCommand(innerWrappedWidgetId, value) : value;
|
|
11352
|
-
commands[key] = wrapCommand(innerWrappedFn);
|
|
11353
|
-
}
|
|
11354
|
-
};
|
|
11355
11317
|
|
|
11356
11318
|
const commandMap = {
|
|
11357
11319
|
'ActivateByEvent.activateByEvent': activateByEvent,
|
|
11358
11320
|
'CodeGenerator.accept': codeGeneratorAccept,
|
|
11359
11321
|
'ColorPicker.loadContent': loadContent$2,
|
|
11360
|
-
'Editor.addCursorAbove': addCursorAbove,
|
|
11361
|
-
'Editor.addCursorBelow': addCursorBelow,
|
|
11362
|
-
'Editor.applyDocumentEdits': applyDocumentEdits,
|
|
11363
|
-
'Editor.applyEdit': applyEdit,
|
|
11322
|
+
'Editor.addCursorAbove': wrapCommand(addCursorAbove),
|
|
11323
|
+
'Editor.addCursorBelow': wrapCommand(addCursorBelow),
|
|
11324
|
+
'Editor.applyDocumentEdits': wrapCommand(applyDocumentEdits),
|
|
11325
|
+
'Editor.applyEdit': wrapCommand(applyEdit),
|
|
11364
11326
|
'Editor.applyEdit2': applyEdits2,
|
|
11365
|
-
'Editor.applyWorkspaceEdit': applyWorkspaceEdit,
|
|
11366
|
-
'Editor.braceCompletion': braceCompletion,
|
|
11367
|
-
'Editor.cancelSelection': cancelSelection,
|
|
11368
|
-
'Editor.closeCodeGenerator': closeCodeGenerator,
|
|
11369
|
-
'Editor.closeFind': closeFind,
|
|
11327
|
+
'Editor.applyWorkspaceEdit': wrapCommand(applyWorkspaceEdit),
|
|
11328
|
+
'Editor.braceCompletion': wrapCommand(braceCompletion),
|
|
11329
|
+
'Editor.cancelSelection': wrapCommand(cancelSelection),
|
|
11330
|
+
'Editor.closeCodeGenerator': wrapCommand(closeCodeGenerator),
|
|
11331
|
+
'Editor.closeFind': wrapCommand(closeFind),
|
|
11370
11332
|
'Editor.closeFind2': closeFind2,
|
|
11371
|
-
'Editor.closeRename': closeRename,
|
|
11372
|
-
'Editor.closeSourceAction': closeSourceAction,
|
|
11333
|
+
'Editor.closeRename': wrapCommand(closeRename),
|
|
11334
|
+
'Editor.closeSourceAction': wrapCommand(closeSourceAction),
|
|
11373
11335
|
'Editor.closeWidget2': closeWidget2,
|
|
11374
|
-
'Editor.compositionEnd': compositionEnd,
|
|
11375
|
-
'Editor.compositionStart': compositionStart,
|
|
11376
|
-
'Editor.compositionUpdate': compositionUpdate,
|
|
11377
|
-
'Editor.contextMenu': handleContextMenu,
|
|
11378
|
-
'Editor.copy': copy$1,
|
|
11379
|
-
'Editor.copyLineDown': copyLineDown,
|
|
11380
|
-
'Editor.copyLineUp': copyLineUp,
|
|
11336
|
+
'Editor.compositionEnd': wrapCommand(compositionEnd),
|
|
11337
|
+
'Editor.compositionStart': wrapCommand(compositionStart),
|
|
11338
|
+
'Editor.compositionUpdate': wrapCommand(compositionUpdate),
|
|
11339
|
+
'Editor.contextMenu': wrapCommand(handleContextMenu),
|
|
11340
|
+
'Editor.copy': wrapCommand(copy$1),
|
|
11341
|
+
'Editor.copyLineDown': wrapCommand(copyLineDown),
|
|
11342
|
+
'Editor.copyLineUp': wrapCommand(copyLineUp),
|
|
11381
11343
|
'Editor.create': createEditor,
|
|
11382
|
-
'Editor.cursorCharacterLeft': cursorCharacterLeft,
|
|
11383
|
-
'Editor.cursorCharacterRight': cursorCharacterRight,
|
|
11384
|
-
'Editor.cursorDown': cursorDown,
|
|
11385
|
-
'Editor.cursorEnd': cursorEnd,
|
|
11386
|
-
'Editor.cursorHome': cursorHome,
|
|
11387
|
-
'Editor.cursorLeft': cursorCharacterLeft,
|
|
11388
|
-
'Editor.cursorRight': cursorCharacterRight,
|
|
11389
|
-
'Editor.cursorSet': cursorSet,
|
|
11390
|
-
'Editor.cursorUp': cursorUp,
|
|
11391
|
-
'Editor.cursorWordLeft': cursorWordLeft,
|
|
11392
|
-
'Editor.cursorWordPartLeft': cursorWordPartLeft,
|
|
11393
|
-
'Editor.cursorWordPartRight': cursorWordPartRight,
|
|
11394
|
-
'Editor.cursorWordRight': cursorWordRight,
|
|
11395
|
-
'Editor.cut': cut$1,
|
|
11396
|
-
'Editor.deleteAllLeft': deleteAllLeft,
|
|
11397
|
-
'Editor.deleteAllRight': deleteAllRight,
|
|
11398
|
-
'Editor.deleteCharacterLeft': deleteCharacterLeft,
|
|
11399
|
-
'Editor.deleteCharacterRight': deleteCharacterRight,
|
|
11400
|
-
'Editor.deleteHorizontalRight': editorDeleteHorizontalRight,
|
|
11401
|
-
'Editor.deleteLeft': deleteCharacterLeft,
|
|
11402
|
-
'Editor.deleteRight': deleteCharacterRight,
|
|
11403
|
-
'Editor.deleteWordLeft': deleteWordLeft,
|
|
11404
|
-
'Editor.deleteWordPartLeft': deleteWordPartLeft,
|
|
11405
|
-
'Editor.deleteWordPartRight': deleteWordPartRight,
|
|
11406
|
-
'Editor.deleteWordRight': deleteWordRight,
|
|
11407
|
-
'Editor.executeWidgetCommand': executeWidgetCommand,
|
|
11408
|
-
'Editor.findAllReferences': findAllReferences$1,
|
|
11409
|
-
'Editor.format': format,
|
|
11344
|
+
'Editor.cursorCharacterLeft': wrapCommand(cursorCharacterLeft),
|
|
11345
|
+
'Editor.cursorCharacterRight': wrapCommand(cursorCharacterRight),
|
|
11346
|
+
'Editor.cursorDown': wrapCommand(cursorDown),
|
|
11347
|
+
'Editor.cursorEnd': wrapCommand(cursorEnd),
|
|
11348
|
+
'Editor.cursorHome': wrapCommand(cursorHome),
|
|
11349
|
+
'Editor.cursorLeft': wrapCommand(cursorCharacterLeft),
|
|
11350
|
+
'Editor.cursorRight': wrapCommand(cursorCharacterRight),
|
|
11351
|
+
'Editor.cursorSet': wrapCommand(cursorSet),
|
|
11352
|
+
'Editor.cursorUp': wrapCommand(cursorUp),
|
|
11353
|
+
'Editor.cursorWordLeft': wrapCommand(cursorWordLeft),
|
|
11354
|
+
'Editor.cursorWordPartLeft': wrapCommand(cursorWordPartLeft),
|
|
11355
|
+
'Editor.cursorWordPartRight': wrapCommand(cursorWordPartRight),
|
|
11356
|
+
'Editor.cursorWordRight': wrapCommand(cursorWordRight),
|
|
11357
|
+
'Editor.cut': wrapCommand(cut$1),
|
|
11358
|
+
'Editor.deleteAllLeft': wrapCommand(deleteAllLeft),
|
|
11359
|
+
'Editor.deleteAllRight': wrapCommand(deleteAllRight),
|
|
11360
|
+
'Editor.deleteCharacterLeft': wrapCommand(deleteCharacterLeft),
|
|
11361
|
+
'Editor.deleteCharacterRight': wrapCommand(deleteCharacterRight),
|
|
11362
|
+
'Editor.deleteHorizontalRight': wrapCommand(editorDeleteHorizontalRight),
|
|
11363
|
+
'Editor.deleteLeft': wrapCommand(deleteCharacterLeft),
|
|
11364
|
+
'Editor.deleteRight': wrapCommand(deleteCharacterRight),
|
|
11365
|
+
'Editor.deleteWordLeft': wrapCommand(deleteWordLeft),
|
|
11366
|
+
'Editor.deleteWordPartLeft': wrapCommand(deleteWordPartLeft),
|
|
11367
|
+
'Editor.deleteWordPartRight': wrapCommand(deleteWordPartRight),
|
|
11368
|
+
'Editor.deleteWordRight': wrapCommand(deleteWordRight),
|
|
11369
|
+
'Editor.executeWidgetCommand': wrapCommand(executeWidgetCommand),
|
|
11370
|
+
'Editor.findAllReferences': wrapCommand(findAllReferences$1),
|
|
11371
|
+
'Editor.format': wrapCommand(format),
|
|
11410
11372
|
'Editor.getDiagnostics': getDiagnostics$1,
|
|
11411
11373
|
'Editor.getKeyBindings': getKeyBindings,
|
|
11412
11374
|
'Editor.getKeys': getKeys,
|
|
@@ -11429,98 +11391,98 @@ const commandMap = {
|
|
|
11429
11391
|
'Editor.getWordAtOffset2': getWordAtOffset2,
|
|
11430
11392
|
'Editor.getWordBefore': getWordBefore,
|
|
11431
11393
|
'Editor.getWordBefore2': getWordBefore2,
|
|
11432
|
-
'Editor.goToDefinition': goToDefinition,
|
|
11433
|
-
'Editor.goToTypeDefinition': goToTypeDefinition,
|
|
11434
|
-
'Editor.handleBeforeInput': handleBeforeInput,
|
|
11435
|
-
'Editor.handleBeforeInputFromContentEditable': handleBeforeInputFromContentEditable,
|
|
11436
|
-
'Editor.handleBlur': handleBlur$1,
|
|
11394
|
+
'Editor.goToDefinition': wrapCommand(goToDefinition),
|
|
11395
|
+
'Editor.goToTypeDefinition': wrapCommand(goToTypeDefinition),
|
|
11396
|
+
'Editor.handleBeforeInput': wrapCommand(handleBeforeInput),
|
|
11397
|
+
'Editor.handleBeforeInputFromContentEditable': wrapCommand(handleBeforeInputFromContentEditable),
|
|
11398
|
+
'Editor.handleBlur': wrapCommand(handleBlur$1),
|
|
11437
11399
|
'Editor.handleClickAtPosition': handleClickAtPosition,
|
|
11438
|
-
'Editor.handleContextMenu': handleContextMenu,
|
|
11439
|
-
'Editor.handleDoubleClick': handleDoubleClick,
|
|
11440
|
-
'Editor.handleFocus': handleFocus$1,
|
|
11441
|
-
'Editor.handleMouseDown': handleMouseDown,
|
|
11442
|
-
'Editor.handleMouseMove': handleMouseMove,
|
|
11443
|
-
'Editor.handleMouseMoveWithAltKey': handleMouseMoveWithAltKey,
|
|
11400
|
+
'Editor.handleContextMenu': wrapCommand(handleContextMenu),
|
|
11401
|
+
'Editor.handleDoubleClick': wrapCommand(handleDoubleClick),
|
|
11402
|
+
'Editor.handleFocus': wrapCommand(handleFocus$1),
|
|
11403
|
+
'Editor.handleMouseDown': wrapCommand(handleMouseDown),
|
|
11404
|
+
'Editor.handleMouseMove': wrapCommand(handleMouseMove),
|
|
11405
|
+
'Editor.handleMouseMoveWithAltKey': wrapCommand(handleMouseMoveWithAltKey),
|
|
11444
11406
|
'Editor.handleNativeSelectionChange': editorHandleNativeSelectionChange,
|
|
11445
|
-
'Editor.handlePointerCaptureLost': handlePointerCaptureLost,
|
|
11407
|
+
'Editor.handlePointerCaptureLost': wrapCommand(handlePointerCaptureLost),
|
|
11446
11408
|
'Editor.handleScrollBarClick': handleScrollBarPointerDown,
|
|
11447
|
-
'Editor.handleScrollBarHorizontalMove': handleScrollBarHorizontalMove,
|
|
11448
|
-
'Editor.handleScrollBarHorizontalPointerDown': handleScrollBarHorizontalPointerDown,
|
|
11449
|
-
'Editor.handleScrollBarMove': handleScrollBarMove,
|
|
11450
|
-
'Editor.handleScrollBarPointerDown': handleScrollBarPointerDown,
|
|
11451
|
-
'Editor.handleScrollBarVerticalMove': handleScrollBarVerticalPointerMove,
|
|
11452
|
-
'Editor.handleScrollBarVerticalPointerDown': handleScrollBarPointerDown,
|
|
11453
|
-
'Editor.handleScrollBarVerticalPointerMove': handleScrollBarVerticalPointerMove,
|
|
11454
|
-
'Editor.handleSingleClick': handleSingleClick,
|
|
11455
|
-
'Editor.handleTab': handleTab,
|
|
11456
|
-
'Editor.handleTouchEnd': handleTouchEnd,
|
|
11457
|
-
'Editor.handleTouchMove': handleTouchMove,
|
|
11458
|
-
'Editor.handleTouchStart': handleTouchStart,
|
|
11459
|
-
'Editor.handleTripleClick': handleTripleClick,
|
|
11409
|
+
'Editor.handleScrollBarHorizontalMove': wrapCommand(handleScrollBarHorizontalMove),
|
|
11410
|
+
'Editor.handleScrollBarHorizontalPointerDown': wrapCommand(handleScrollBarHorizontalPointerDown),
|
|
11411
|
+
'Editor.handleScrollBarMove': wrapCommand(handleScrollBarMove),
|
|
11412
|
+
'Editor.handleScrollBarPointerDown': wrapCommand(handleScrollBarPointerDown),
|
|
11413
|
+
'Editor.handleScrollBarVerticalMove': wrapCommand(handleScrollBarVerticalPointerMove),
|
|
11414
|
+
'Editor.handleScrollBarVerticalPointerDown': wrapCommand(handleScrollBarPointerDown),
|
|
11415
|
+
'Editor.handleScrollBarVerticalPointerMove': wrapCommand(handleScrollBarVerticalPointerMove),
|
|
11416
|
+
'Editor.handleSingleClick': wrapCommand(handleSingleClick),
|
|
11417
|
+
'Editor.handleTab': wrapCommand(handleTab),
|
|
11418
|
+
'Editor.handleTouchEnd': wrapCommand(handleTouchEnd),
|
|
11419
|
+
'Editor.handleTouchMove': wrapCommand(handleTouchMove),
|
|
11420
|
+
'Editor.handleTouchStart': wrapCommand(handleTouchStart),
|
|
11421
|
+
'Editor.handleTripleClick': wrapCommand(handleTripleClick),
|
|
11460
11422
|
'Editor.hotReload': hotReload,
|
|
11461
|
-
'Editor.indendLess': indentLess,
|
|
11462
|
-
'Editor.indentMore': indentMore,
|
|
11463
|
-
'Editor.insertLineBreak': insertLineBreak,
|
|
11464
|
-
'Editor.moveLineDown': moveLineDown,
|
|
11465
|
-
'Editor.moveLineUp': moveLineUp,
|
|
11466
|
-
'Editor.moveRectangleSelection': moveRectangleSelection,
|
|
11467
|
-
'Editor.moveRectangleSelectionPx': moveRectangleSelectionPx,
|
|
11468
|
-
'Editor.moveSelection': editorMoveSelection,
|
|
11469
|
-
'Editor.moveSelectionPx': moveSelectionPx,
|
|
11423
|
+
'Editor.indendLess': wrapCommand(indentLess),
|
|
11424
|
+
'Editor.indentMore': wrapCommand(indentMore),
|
|
11425
|
+
'Editor.insertLineBreak': wrapCommand(insertLineBreak),
|
|
11426
|
+
'Editor.moveLineDown': wrapCommand(moveLineDown),
|
|
11427
|
+
'Editor.moveLineUp': wrapCommand(moveLineUp),
|
|
11428
|
+
'Editor.moveRectangleSelection': wrapCommand(moveRectangleSelection),
|
|
11429
|
+
'Editor.moveRectangleSelectionPx': wrapCommand(moveRectangleSelectionPx),
|
|
11430
|
+
'Editor.moveSelection': wrapCommand(editorMoveSelection),
|
|
11431
|
+
'Editor.moveSelectionPx': wrapCommand(moveSelectionPx),
|
|
11470
11432
|
'Editor.offsetAt': offsetAt,
|
|
11471
|
-
'Editor.openCodeGenerator': openCodeGenerator,
|
|
11472
|
-
'Editor.openColorPicker': openColorPicker,
|
|
11473
|
-
'Editor.openCompletion': openCompletion,
|
|
11474
|
-
'Editor.openFind': openFind,
|
|
11475
|
-
'Editor.openFind2': openFind2,
|
|
11476
|
-
'Editor.openRename': openRename,
|
|
11477
|
-
'Editor.organizeImports': organizeImports,
|
|
11478
|
-
'Editor.paste': paste,
|
|
11479
|
-
'Editor.pasteText': pasteText,
|
|
11433
|
+
'Editor.openCodeGenerator': wrapCommand(openCodeGenerator),
|
|
11434
|
+
'Editor.openColorPicker': wrapCommand(openColorPicker),
|
|
11435
|
+
'Editor.openCompletion': wrapCommand(openCompletion),
|
|
11436
|
+
'Editor.openFind': wrapCommand(openFind),
|
|
11437
|
+
'Editor.openFind2': wrapCommand(openFind2),
|
|
11438
|
+
'Editor.openRename': wrapCommand(openRename),
|
|
11439
|
+
'Editor.organizeImports': wrapCommand(organizeImports),
|
|
11440
|
+
'Editor.paste': wrapCommand(paste),
|
|
11441
|
+
'Editor.pasteText': wrapCommand(pasteText),
|
|
11480
11442
|
'Editor.render': renderEditor,
|
|
11481
11443
|
'Editor.renderEventListeners': renderEventListeners,
|
|
11482
|
-
'Editor.replaceRange': replaceRange,
|
|
11483
|
-
'Editor.rerender': rerender,
|
|
11484
|
-
'Editor.save': save,
|
|
11485
|
-
'Editor.selectAll': selectAll,
|
|
11486
|
-
'Editor.selectAllLeft': editorSelectAllLeft,
|
|
11487
|
-
'Editor.selectAllOccurrences': selectAllOccurrences,
|
|
11488
|
-
'Editor.selectAllRight': editorSelectAllRight,
|
|
11489
|
-
'Editor.selectCharacterLeft': selectCharacterLeft,
|
|
11490
|
-
'Editor.selectCharacterRight': selectCharacterRight,
|
|
11491
|
-
'Editor.selectDown': selectDown,
|
|
11492
|
-
'Editor.selectInsideString': selectInsideString,
|
|
11493
|
-
'Editor.selectionGrow': selectionGrow,
|
|
11494
|
-
'Editor.selectLine': selectLine,
|
|
11495
|
-
'Editor.selectNextOccurrence': selectNextOccurrence,
|
|
11496
|
-
'Editor.selectPreviousOccurrence': selectPreviousOccurrence,
|
|
11497
|
-
'Editor.selectUp': selectUp,
|
|
11498
|
-
'Editor.selectWord': selectWord,
|
|
11499
|
-
'Editor.selectWordLeft': selectWordLeft,
|
|
11500
|
-
'Editor.selectWordRight': selectWordRight,
|
|
11501
|
-
'Editor.setDebugEnabled': setDebugEnabled,
|
|
11502
|
-
'Editor.setDecorations': setDecorations,
|
|
11503
|
-
'Editor.setDelta': setDelta,
|
|
11504
|
-
'Editor.setDeltaY': setDeltaY,
|
|
11505
|
-
'Editor.setLanguageId': setLanguageId,
|
|
11506
|
-
'Editor.setSelections': setSelections,
|
|
11444
|
+
'Editor.replaceRange': wrapCommand(replaceRange),
|
|
11445
|
+
'Editor.rerender': wrapCommand(rerender),
|
|
11446
|
+
'Editor.save': wrapCommand(save),
|
|
11447
|
+
'Editor.selectAll': wrapCommand(selectAll),
|
|
11448
|
+
'Editor.selectAllLeft': wrapCommand(editorSelectAllLeft),
|
|
11449
|
+
'Editor.selectAllOccurrences': wrapCommand(selectAllOccurrences),
|
|
11450
|
+
'Editor.selectAllRight': wrapCommand(editorSelectAllRight),
|
|
11451
|
+
'Editor.selectCharacterLeft': wrapCommand(selectCharacterLeft),
|
|
11452
|
+
'Editor.selectCharacterRight': wrapCommand(selectCharacterRight),
|
|
11453
|
+
'Editor.selectDown': wrapCommand(selectDown),
|
|
11454
|
+
'Editor.selectInsideString': wrapCommand(selectInsideString),
|
|
11455
|
+
'Editor.selectionGrow': wrapCommand(selectionGrow),
|
|
11456
|
+
'Editor.selectLine': wrapCommand(selectLine),
|
|
11457
|
+
'Editor.selectNextOccurrence': wrapCommand(selectNextOccurrence),
|
|
11458
|
+
'Editor.selectPreviousOccurrence': wrapCommand(selectPreviousOccurrence),
|
|
11459
|
+
'Editor.selectUp': wrapCommand(selectUp),
|
|
11460
|
+
'Editor.selectWord': wrapCommand(selectWord),
|
|
11461
|
+
'Editor.selectWordLeft': wrapCommand(selectWordLeft),
|
|
11462
|
+
'Editor.selectWordRight': wrapCommand(selectWordRight),
|
|
11463
|
+
'Editor.setDebugEnabled': wrapCommand(setDebugEnabled),
|
|
11464
|
+
'Editor.setDecorations': wrapCommand(setDecorations),
|
|
11465
|
+
'Editor.setDelta': wrapCommand(setDelta),
|
|
11466
|
+
'Editor.setDeltaY': wrapCommand(setDeltaY),
|
|
11467
|
+
'Editor.setLanguageId': wrapCommand(setLanguageId),
|
|
11468
|
+
'Editor.setSelections': wrapCommand(setSelections),
|
|
11507
11469
|
'Editor.setSelections2': setSelections2,
|
|
11508
11470
|
'Editor.showHover': showHover,
|
|
11509
11471
|
'Editor.showHover2': showHover3,
|
|
11510
11472
|
'Editor.showSourceActions': showSourceActions,
|
|
11511
11473
|
'Editor.showSourceActions2': showSourceActions,
|
|
11512
11474
|
'Editor.showSourceActions3': showSourceActions,
|
|
11513
|
-
'Editor.sortLinesAscending': sortLinesAscending,
|
|
11514
|
-
'Editor.tabCompletion': tabCompletion,
|
|
11515
|
-
'Editor.toggleBlockComment': toggleBlockComment,
|
|
11516
|
-
'Editor.toggleComment': toggleComment,
|
|
11517
|
-
'Editor.toggleLineComment': editorToggleLineComment,
|
|
11518
|
-
'Editor.type': type,
|
|
11519
|
-
'Editor.typeWithAutoClosing': typeWithAutoClosing,
|
|
11520
|
-
'Editor.undo': undo,
|
|
11521
|
-
'Editor.unIndent': editorUnindent,
|
|
11475
|
+
'Editor.sortLinesAscending': wrapCommand(sortLinesAscending),
|
|
11476
|
+
'Editor.tabCompletion': wrapCommand(tabCompletion),
|
|
11477
|
+
'Editor.toggleBlockComment': wrapCommand(toggleBlockComment),
|
|
11478
|
+
'Editor.toggleComment': wrapCommand(toggleComment),
|
|
11479
|
+
'Editor.toggleLineComment': wrapCommand(editorToggleLineComment),
|
|
11480
|
+
'Editor.type': wrapCommand(type),
|
|
11481
|
+
'Editor.typeWithAutoClosing': wrapCommand(typeWithAutoClosing),
|
|
11482
|
+
'Editor.undo': wrapCommand(undo),
|
|
11483
|
+
'Editor.unIndent': wrapCommand(editorUnindent),
|
|
11522
11484
|
'Editor.updateDebugInfo': updateDebugInfo,
|
|
11523
|
-
'Editor.updateDiagnostics': updateDiagnostics,
|
|
11485
|
+
'Editor.updateDiagnostics': wrapCommand(updateDiagnostics),
|
|
11524
11486
|
'EditorCompletion.close': close$4,
|
|
11525
11487
|
'EditorCompletion.closeDetails': closeDetails$1,
|
|
11526
11488
|
'EditorCompletion.focusFirst': focusFirst$1,
|
|
@@ -11592,7 +11554,6 @@ const commandMap = {
|
|
|
11592
11554
|
'Initialize.initialize': intialize,
|
|
11593
11555
|
'SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker': sendMessagePortToExtensionHostWorker2
|
|
11594
11556
|
};
|
|
11595
|
-
wrapCommands(commandMap);
|
|
11596
11557
|
|
|
11597
11558
|
const send = port => {
|
|
11598
11559
|
// @ts-ignore
|