@lvce-editor/editor-worker 5.11.0 → 5.13.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/api/api.d.ts CHANGED
@@ -4,13 +4,14 @@ interface EventMap {
4
4
  'ColorPicker.loadContent': (state: any) => Promise<any>
5
5
  'ColorPicker.render': (oldState: any, newState: any) => Promise<any>
6
6
  'Editor.create': (options: any) => Promise<void>
7
+ 'Editor.getQuickPickMenuEntries': () => Promise<readonly any[]>
7
8
  'Editor.offsetAt': (textDocument: any, positionRowIndex: number, positionColumnIndex: number) => Promise<any>
8
9
  'Editor.render': (editorUid: number) => Promise<any>
10
+ 'EditorCompletion.closeDetails': (editorUid: number, state: any) => Promise<any>
9
11
  'EditorCompletion.loadContent': (editorUid: number, state: any) => Promise<any>
12
+ 'EditorCompletion.openDetails': (editorUid: number, state: any) => Promise<any>
10
13
  'EditorCompletion.selectCurrent': (editorUid: number, state: any) => Promise<any>
11
14
  'EditorCompletion.selectIndex': (editorUid: number, state: any, index: number) => Promise<any>
12
- 'EditorCompletion.openDetails': (editorUid: number, state: any) => Promise<any>
13
- 'EditorCompletion.closeDetails': (editorUid: number, state: any) => Promise<any>
14
15
  'EditorCompletion.toggleDetails': (editorUid: number, state: any) => Promise<any>
15
16
  'FindWidget.focusFirst': (state: any) => Promise<any>
16
17
  'FindWidget.focusIndex': (state: any, index: number) => Promise<any>
@@ -500,15 +500,15 @@ const createMeasureContext = () => {
500
500
  return ctx;
501
501
  };
502
502
 
503
- const state$a = {
503
+ const state$9 = {
504
504
  ctx: undefined
505
505
  };
506
506
  const getOrCreate = createCtx => {
507
- if (state$a.ctx) {
508
- return state$a.ctx;
507
+ if (state$9.ctx) {
508
+ return state$9.ctx;
509
509
  }
510
- state$a.ctx = createCtx();
511
- return state$a.ctx;
510
+ state$9.ctx = createCtx();
511
+ return state$9.ctx;
512
512
  };
513
513
 
514
514
  const getContext = () => {
@@ -1053,17 +1053,15 @@ const TabCompletionExecuteTabCompletionProvider = 'ExtensionHost.executeTabCompl
1053
1053
  const TextDocumentSyncFull = 'ExtensionHostTextDocument.syncFull';
1054
1054
 
1055
1055
  const Two = '2.0';
1056
- const state$9 = {
1057
- callbacks: Object.create(null)
1058
- };
1056
+ const callbacks = Object.create(null);
1059
1057
  const set$5 = (id, fn) => {
1060
- state$9.callbacks[id] = fn;
1058
+ callbacks[id] = fn;
1061
1059
  };
1062
1060
  const get$5 = id => {
1063
- return state$9.callbacks[id];
1061
+ return callbacks[id];
1064
1062
  };
1065
1063
  const remove$8 = id => {
1066
- delete state$9.callbacks[id];
1064
+ delete callbacks[id];
1067
1065
  };
1068
1066
  let id = 0;
1069
1067
  const create$3$1 = () => {
@@ -2366,7 +2364,6 @@ const cancelSelection = editor => {
2366
2364
  return scheduleSelections(editor, newSelections);
2367
2365
  };
2368
2366
 
2369
- // TODO use numeric widget id
2370
2367
  const CodeGenerator = 1;
2371
2368
  const ColorPicker$1 = 2;
2372
2369
  const Completion = 3;
@@ -2763,453 +2760,50 @@ const copyLineDown = editor => {
2763
2760
  return scheduleDocumentAndCursorsSelections(editor, changes);
2764
2761
  };
2765
2762
 
2766
- const Backspace = 1;
2767
- const Tab = 2;
2768
- const Enter = 3;
2769
- const Escape = 8;
2770
- const Space$1 = 9;
2771
- const End = 255;
2772
- const Home = 12;
2773
- const LeftArrow = 13;
2774
- const UpArrow = 14;
2775
- const RightArrow = 15;
2776
- const DownArrow = 16;
2777
- const Delete = 18;
2778
- const KeyA = 29;
2779
- const KeyC = 31;
2780
- const KeyD = 32;
2781
- const KeyF = 34;
2782
- const KeyH = 36;
2783
- const KeyJ = 38;
2784
- const KeyK = 39;
2785
- const KeyL = 40;
2786
- const KeyO = 43;
2787
- const KeyV = 50;
2788
- const KeyX = 52;
2789
- const KeyZ = 54;
2790
- const F2 = 58;
2791
- const F3 = 59;
2792
- const F4 = 60;
2793
- const F12 = 68;
2794
- const Period = 87;
2795
- const Slash$1 = 88;
2796
- const BracketLeft = 90;
2797
- const BracketRight = 92;
2763
+ const copyLineUp = editor => {
2764
+ const {
2765
+ selections
2766
+ } = editor;
2767
+ const rowIndex = selections[0];
2768
+ const position = {
2769
+ rowIndex: rowIndex,
2770
+ columnIndex: 0
2771
+ };
2772
+ const changes = [{
2773
+ start: position,
2774
+ end: position,
2775
+ inserted: [getLine(editor, rowIndex), ''],
2776
+ deleted: ['']
2777
+ }];
2778
+ return scheduleDocumentAndCursorsSelections(editor, changes);
2779
+ };
2798
2780
 
2799
- const CtrlCmd = 1 << 11 >>> 0;
2800
- const Shift = 1 << 10 >>> 0;
2801
- const Alt$1 = 1 << 9 >>> 0;
2781
+ // @ts-ignore
2782
+ const editorGetPositionLeft = (rowIndex, columnIndex, lines, getDelta) => {
2783
+ if (columnIndex === 0) {
2784
+ if (rowIndex === 0) {
2785
+ return {
2786
+ rowIndex: 0,
2787
+ columnIndex: 0
2788
+ };
2789
+ }
2790
+ return {
2791
+ rowIndex: rowIndex - 1,
2792
+ columnIndex: lines[rowIndex - 1].length
2793
+ };
2794
+ }
2795
+ const delta = getDelta(lines[rowIndex], columnIndex);
2796
+ return {
2797
+ rowIndex,
2798
+ columnIndex: columnIndex - delta
2799
+ };
2800
+ };
2802
2801
 
2803
- const FocusEditor = 12;
2804
- const FocusEditorCompletions = 9;
2805
- const FocusEditorRename = 11;
2806
- const FocusEditorText = 12;
2807
- const FocusFindWidget = 16;
2808
- const FocusSourceActions = 38;
2809
- const FocusFindWidgetReplace = 43;
2810
- const FocusFindWidgetReplaceButton = 46;
2811
- const FocusFindWidgetReplaceAllButton = 47;
2812
- const FocusFindWidgetCloseButton = 48;
2813
- const FocusFindWidgetNextMatchButton = 49;
2814
- const FocusFindWidgetPreviousMatchButton = 50;
2815
- const FocusEditorCodeGenerator = 52;
2816
-
2817
- const getKeyBindings = () => {
2818
- return [{
2819
- key: Escape,
2820
- command: 'Editor.closeSourceAction',
2821
- when: FocusSourceActions
2822
- }, {
2823
- key: DownArrow,
2824
- command: 'EditorSourceActions.focusNext',
2825
- when: FocusSourceActions
2826
- }, {
2827
- key: UpArrow,
2828
- command: 'EditorSourceActions.focusPrevious',
2829
- when: FocusSourceActions
2830
- }, {
2831
- key: Home,
2832
- command: 'EditorSourceActions.focusFirst',
2833
- when: FocusSourceActions
2834
- }, {
2835
- key: End,
2836
- command: 'EditorSourceActions.focusLast',
2837
- when: FocusSourceActions
2838
- }, {
2839
- key: Enter,
2840
- command: 'EditorSourceActions.selectCurrent',
2841
- when: FocusSourceActions
2842
- }, {
2843
- key: Enter,
2844
- command: 'FindWidget.focusNext',
2845
- when: FocusFindWidget
2846
- }, {
2847
- key: Shift | F4,
2848
- command: 'FindWidget.focusPrevious',
2849
- when: FocusFindWidget
2850
- }, {
2851
- key: F4,
2852
- command: 'FindWidget.focusNext',
2853
- when: FocusFindWidget
2854
- }, {
2855
- key: Shift | Tab,
2856
- command: 'FindWidget.focusToggleReplace',
2857
- when: FocusFindWidget
2858
- }, {
2859
- key: Tab,
2860
- command: 'FindWidget.focusReplace',
2861
- when: FocusFindWidget
2862
- }, {
2863
- key: Tab,
2864
- command: 'FindWidget.focusPreviousMatchButton',
2865
- when: FocusFindWidgetReplace
2866
- }, {
2867
- key: Alt$1 | CtrlCmd | Enter,
2868
- command: 'FindWidget.replaceAll',
2869
- when: FocusFindWidgetReplace
2870
- }, {
2871
- key: Tab,
2872
- command: 'FindWidget.focusNextMatchButton',
2873
- when: FocusFindWidgetPreviousMatchButton
2874
- }, {
2875
- key: Shift | Tab,
2876
- command: 'FindWidget.focusReplace',
2877
- when: FocusFindWidgetPreviousMatchButton
2878
- }, {
2879
- key: Shift | Tab,
2880
- command: 'FindWidget.focusPreviousMatchButton',
2881
- when: FocusFindWidgetNextMatchButton
2882
- }, {
2883
- key: Tab,
2884
- command: 'FindWidget.focusCloseButton',
2885
- when: FocusFindWidgetNextMatchButton
2886
- }, {
2887
- key: Shift | Tab,
2888
- command: 'FindWidget.focusNextMatchButton',
2889
- when: FocusFindWidgetCloseButton
2890
- }, {
2891
- key: Tab,
2892
- command: 'FindWidget.focusReplaceButton',
2893
- when: FocusFindWidgetCloseButton
2894
- }, {
2895
- key: Shift | Tab,
2896
- command: 'FindWidget.focusFind',
2897
- when: FocusFindWidgetReplace
2898
- }, {
2899
- key: Tab,
2900
- command: 'FindWidget.focusReplaceAllButton',
2901
- when: FocusFindWidgetReplaceButton
2902
- }, {
2903
- key: Shift | Tab,
2904
- command: 'FindWidget.focusCloseButton',
2905
- when: FocusFindWidgetReplaceButton
2906
- }, {
2907
- key: Shift | Tab,
2908
- command: 'FindWidget.focusReplaceButton',
2909
- when: FocusFindWidgetReplaceAllButton
2910
- }, {
2911
- key: DownArrow,
2912
- command: 'EditorCompletion.focusNext',
2913
- when: FocusEditorCompletions
2914
- }, {
2915
- key: UpArrow,
2916
- command: 'EditorCompletion.focusPrevious',
2917
- when: FocusEditorCompletions
2918
- }, {
2919
- key: Enter,
2920
- command: 'EditorCompletion.selectCurrent',
2921
- when: FocusEditorCompletions
2922
- }, {
2923
- key: Escape,
2924
- command: 'Editor.closeCompletion',
2925
- when: FocusEditorCompletions
2926
- }, {
2927
- key: End,
2928
- command: 'EditorCompletion.focusLast',
2929
- when: FocusEditorCompletions
2930
- }, {
2931
- key: Home,
2932
- command: 'EditorCompletion.focusFirst',
2933
- when: FocusEditorCompletions
2934
- }, {
2935
- key: CtrlCmd | Space$1,
2936
- command: 'EditorCompletion.toggleDetails',
2937
- when: FocusEditorCompletions
2938
- }, {
2939
- key: CtrlCmd | RightArrow,
2940
- command: 'Editor.cursorWordRight',
2941
- when: FocusEditorText
2942
- }, {
2943
- key: CtrlCmd | LeftArrow,
2944
- command: 'Editor.cursorWordLeft',
2945
- when: FocusEditorText
2946
- }, {
2947
- key: Alt$1 | Backspace,
2948
- command: 'Editor.deleteWordPartLeft',
2949
- when: FocusEditorText
2950
- }, {
2951
- key: Alt$1 | Delete,
2952
- command: 'Editor.deleteWordPartRight',
2953
- when: FocusEditorText
2954
- }, {
2955
- key: CtrlCmd | Backspace,
2956
- command: 'Editor.deleteWordLeft',
2957
- when: FocusEditorText
2958
- }, {
2959
- key: CtrlCmd | Delete,
2960
- command: 'Editor.deleteWordRight',
2961
- when: FocusEditorText
2962
- }, {
2963
- key: CtrlCmd | KeyD,
2964
- command: 'Editor.selectNextOccurrence',
2965
- when: FocusEditorText
2966
- }, {
2967
- key: CtrlCmd | KeyJ,
2968
- command: 'Editor.openColorPicker',
2969
- when: FocusEditorText
2970
- }, {
2971
- key: CtrlCmd | Period,
2972
- command: 'Editor.showSourceActions2',
2973
- when: FocusEditorText
2974
- }, {
2975
- key: Tab,
2976
- command: 'Editor.handleTab',
2977
- when: FocusEditorText
2978
- }, {
2979
- key: Shift | Tab,
2980
- command: 'Editor.unindent',
2981
- when: FocusEditorText
2982
- }, {
2983
- key: CtrlCmd | BracketLeft,
2984
- command: 'Editor.indentLess',
2985
- when: FocusEditorText
2986
- }, {
2987
- key: Escape,
2988
- command: 'Editor.closeFind',
2989
- when: FocusFindWidget
2990
- }, {
2991
- key: CtrlCmd | KeyF,
2992
- command: 'Editor.openFind2',
2993
- when: FocusEditorText
2994
- }, {
2995
- key: CtrlCmd | KeyK,
2996
- command: 'Editor.openCodeGenerator',
2997
- when: FocusEditorText
2998
- }, {
2999
- key: Escape,
3000
- command: 'Editor.closeCodeGenerator',
3001
- when: FocusEditorCodeGenerator
3002
- }, {
3003
- key: Enter,
3004
- command: 'EditorCodeGenerator.accept',
3005
- when: FocusEditorCodeGenerator
3006
- }, {
3007
- key: CtrlCmd | BracketRight,
3008
- command: 'Editor.indentMore',
3009
- when: FocusEditorText
3010
- }, {
3011
- key: Shift | LeftArrow,
3012
- command: 'Editor.selectCharacterLeft',
3013
- when: FocusEditorText
3014
- }, {
3015
- key: CtrlCmd | Shift | LeftArrow,
3016
- command: 'Editor.selectWordLeft',
3017
- when: FocusEditorText
3018
- }, {
3019
- key: Shift | RightArrow,
3020
- command: 'Editor.selectCharacterRight',
3021
- when: FocusEditorText
3022
- }, {
3023
- key: CtrlCmd | Shift | RightArrow,
3024
- command: 'Editor.selectWordRight',
3025
- when: FocusEditorText
3026
- }, {
3027
- key: CtrlCmd | KeyL,
3028
- command: 'Editor.selectLine',
3029
- when: FocusEditorText
3030
- }, {
3031
- key: CtrlCmd | Shift | Backspace,
3032
- command: 'Editor.deleteAllLeft',
3033
- when: FocusEditorText
3034
- }, {
3035
- key: CtrlCmd | Shift | Delete,
3036
- command: 'Editor.deleteAllRight',
3037
- when: FocusEditorText
3038
- }, {
3039
- key: Escape,
3040
- command: 'Editor.cancelSelection',
3041
- when: FocusEditorText
3042
- }, {
3043
- key: CtrlCmd | KeyZ,
3044
- command: 'Editor.undo',
3045
- when: FocusEditorText
3046
- }, {
3047
- key: LeftArrow,
3048
- command: 'Editor.cursorLeft',
3049
- when: FocusEditorText
3050
- }, {
3051
- key: RightArrow,
3052
- command: 'Editor.cursorRight',
3053
- when: FocusEditorText
3054
- }, {
3055
- key: UpArrow,
3056
- command: 'Editor.cursorUp',
3057
- when: FocusEditorText
3058
- }, {
3059
- key: DownArrow,
3060
- command: 'Editor.cursorDown',
3061
- when: FocusEditorText
3062
- }, {
3063
- key: Backspace,
3064
- command: 'Editor.deleteLeft',
3065
- when: FocusEditorText
3066
- }, {
3067
- key: Delete,
3068
- command: 'Editor.deleteRight',
3069
- when: FocusEditorText
3070
- }, {
3071
- key: Enter,
3072
- command: 'Editor.insertLineBreak',
3073
- when: FocusEditorText
3074
- }, {
3075
- key: CtrlCmd | Shift | KeyD,
3076
- command: 'Editor.copyLineDown',
3077
- when: FocusEditorText
3078
- }, {
3079
- key: CtrlCmd | Shift | DownArrow,
3080
- command: 'Editor.moveLineDown',
3081
- when: FocusEditorText
3082
- }, {
3083
- key: CtrlCmd | Shift | UpArrow,
3084
- command: 'Editor.moveLineUp',
3085
- when: FocusEditorText
3086
- }, {
3087
- key: CtrlCmd | Space$1,
3088
- command: 'Editor.openCompletion',
3089
- when: FocusEditorText
3090
- }, {
3091
- key: F2,
3092
- command: 'Editor.openRename',
3093
- when: FocusEditorText
3094
- }, {
3095
- key: Enter,
3096
- command: 'EditorRename.accept',
3097
- when: FocusEditorRename
3098
- }, {
3099
- key: Escape,
3100
- command: 'Editor.closeRename',
3101
- when: FocusEditorRename
3102
- }, {
3103
- key: Home,
3104
- command: 'Editor.cursorHome',
3105
- when: FocusEditorText
3106
- }, {
3107
- key: End,
3108
- command: 'Editor.cursorEnd',
3109
- when: FocusEditorText
3110
- }, {
3111
- key: CtrlCmd | Slash$1,
3112
- command: 'Editor.toggleComment',
3113
- when: FocusEditorText
3114
- }, {
3115
- key: CtrlCmd | KeyC,
3116
- command: 'Editor.copy',
3117
- when: FocusEditorText
3118
- }, {
3119
- key: CtrlCmd | KeyA,
3120
- command: 'Editor.selectAll',
3121
- when: FocusEditorText
3122
- }, {
3123
- key: CtrlCmd | KeyH,
3124
- command: 'Editor.showHover2',
3125
- when: FocusEditorText
3126
- }, {
3127
- key: CtrlCmd | KeyX,
3128
- command: 'Editor.cut',
3129
- when: FocusEditorText
3130
- }, {
3131
- key: CtrlCmd | KeyV,
3132
- command: 'Editor.paste',
3133
- when: FocusEditorText
3134
- }, {
3135
- key: Alt$1 | LeftArrow,
3136
- command: 'Editor.cursorWordPartLeft',
3137
- when: FocusEditorText
3138
- }, {
3139
- key: Alt$1 | RightArrow,
3140
- command: 'Editor.cursorWordPartRight',
3141
- when: FocusEditorText
3142
- }, {
3143
- key: Alt$1 | F3,
3144
- command: 'Editor.selectAllOccurrences',
3145
- when: FocusEditorText
3146
- }, {
3147
- key: Alt$1 | Shift | UpArrow,
3148
- command: 'Editor.addCursorAbove',
3149
- when: FocusEditorText
3150
- }, {
3151
- key: Alt$1 | Shift | DownArrow,
3152
- command: 'Editor.addCursorBelow',
3153
- when: FocusEditorText
3154
- }, {
3155
- key: Alt$1 | Shift | F12,
3156
- command: 'Editor.findAllReferences',
3157
- when: FocusEditorText
3158
- }, {
3159
- key: Alt$1 | Shift | KeyO,
3160
- command: 'Editor.organizeImports',
3161
- when: FocusEditorText
3162
- }, {
3163
- key: CtrlCmd | Shift | Space$1,
3164
- command: 'Editor.selectionGrow',
3165
- when: FocusEditor
3166
- }];
3167
- };
3168
-
3169
- const copyLineUp = editor => {
3170
- const {
3171
- selections
3172
- } = editor;
3173
- const rowIndex = selections[0];
3174
- const position = {
3175
- rowIndex: rowIndex,
3176
- columnIndex: 0
3177
- };
3178
- const changes = [{
3179
- start: position,
3180
- end: position,
3181
- inserted: [getLine(editor, rowIndex), ''],
3182
- deleted: ['']
3183
- }];
3184
- return scheduleDocumentAndCursorsSelections(editor, changes);
3185
- };
3186
-
3187
- // @ts-ignore
3188
- const editorGetPositionLeft = (rowIndex, columnIndex, lines, getDelta) => {
3189
- if (columnIndex === 0) {
3190
- if (rowIndex === 0) {
3191
- return {
3192
- rowIndex: 0,
3193
- columnIndex: 0
3194
- };
3195
- }
3196
- return {
3197
- rowIndex: rowIndex - 1,
3198
- columnIndex: lines[rowIndex - 1].length
3199
- };
3200
- }
3201
- const delta = getDelta(lines[rowIndex], columnIndex);
3202
- return {
3203
- rowIndex,
3204
- columnIndex: columnIndex - delta
3205
- };
3206
- };
3207
-
3208
- // @ts-ignore
3209
- const moveToPositionEqual = (selections, i, rowIndex, columnIndex) => {
3210
- selections[i] = rowIndex;
3211
- selections[i + 1] = columnIndex;
3212
- };
2802
+ // @ts-ignore
2803
+ const moveToPositionEqual = (selections, i, rowIndex, columnIndex) => {
2804
+ selections[i] = rowIndex;
2805
+ selections[i + 1] = columnIndex;
2806
+ };
3213
2807
 
3214
2808
  // @ts-ignore
3215
2809
  const moveRangeToPosition = (selections, i, rowIndex, columnIndex) => {
@@ -3856,19 +3450,56 @@ const i18nString = (key, placeholders = emptyObject) => {
3856
3450
  };
3857
3451
 
3858
3452
  const UiStrings$1 = {
3453
+ Copy: 'Copy',
3454
+ CopyLineDown: 'Copy Line Down',
3455
+ CopyLineUp: 'Copy Line Up',
3456
+ Cut: 'Cut',
3457
+ DuplicateSelection: 'Duplicate Selection',
3458
+ EditorCloseColorPicker: 'Editor: Close Color Picker',
3459
+ EditorCopyLineDown: 'Editor: Copy Line Down',
3460
+ EditorCopyLineUp: 'Editor: Copy Line Up',
3461
+ EditorFormatDocumentForced: 'Editor: Format Document (forced)',
3462
+ EditorGoToDefinition: 'Editor: Go To Definition',
3463
+ EditorGoToTypeDefinition: 'Editor: Go To Type Definition',
3464
+ EditorIndent: 'Editor: Indent',
3465
+ EditorOpenColorPicker: 'Editor: Open Color Picker',
3466
+ EditorSelectAllOccurrences: 'Editor: Select All Occurrences',
3467
+ EditorSelectDown: 'Editor: Select Down',
3468
+ EditorSelectInsideString: 'Editor: Select Inside String',
3469
+ EditorSelectNextOccurrence: 'Editor: Select Next Occurrence',
3470
+ EditorSelectUp: 'Editor: Select Up',
3471
+ EditorShowHover: 'Show Hover',
3472
+ EditorSortLinesAscending: 'Editor: Sort Lines Ascending',
3473
+ EditorToggleBlockComment: 'Editor: Toggle Block Comment',
3474
+ EditorToggleComment: 'Editor: Toggle Comment',
3475
+ EditorUnindent: 'Editor: Unindent',
3476
+ EnterCode: 'Enter Code',
3477
+ EscapeToClose: 'Escape to close',
3478
+ FindAllImplementations: 'Find All Implementations',
3479
+ FindAllReferences: 'Find All References',
3480
+ FormatDocument: 'Format Document',
3859
3481
  GoToDefinition: 'Go to Definition',
3482
+ GoToTypeDefinition: 'Go to Type Definition',
3483
+ MoveLineDown: 'Move Line Down',
3484
+ MoveLineUp: 'Move Line Up',
3485
+ NoCodeActionsAvailable: 'No code actions available',
3860
3486
  NoDefinitionFound: 'No definition found',
3861
3487
  NoDefinitionFoundFor: "No definition found for '{PH1}'",
3488
+ NoResults: 'No Results',
3862
3489
  NoTypeDefinitionFound: 'No type definition found',
3863
3490
  NoTypeDefinitionFoundFor: "No type definition found for '{PH1}'",
3864
- NoResults: 'No Results',
3865
- Replace: 'Replace',
3866
- SourceAction: 'Source Action',
3867
3491
  OrganizeImports: 'Organize Imports',
3492
+ Paste: 'Paste',
3493
+ Redo: 'Redo',
3494
+ Replace: 'Replace',
3495
+ SelectAll: 'Select All',
3496
+ Separator: 'Separator',
3868
3497
  SortImports: 'Sort Imports',
3869
- NoCodeActionsAvailable: 'No code actions available',
3870
- EscapeToClose: 'Escape to close',
3871
- EnterCode: 'Enter Code'
3498
+ SourceAction: 'Source Action',
3499
+ SourceActions: 'Source Actions',
3500
+ ToggleBlockComment: 'Toggle Block Comment',
3501
+ ToggleLineComment: 'Toggle Line Comment',
3502
+ Undo: 'Undo'
3872
3503
  };
3873
3504
  const noDefinitionFound = () => {
3874
3505
  return i18nString(UiStrings$1.NoDefinitionFound);
@@ -3901,6 +3532,69 @@ const escapeToClose = () => {
3901
3532
  const enterCode = () => {
3902
3533
  return i18nString(UiStrings$1.EnterCode);
3903
3534
  };
3535
+ const toggleBlockComment$1 = () => {
3536
+ return i18nString(UiStrings$1.ToggleBlockComment);
3537
+ };
3538
+ const moveLineUp$1 = () => {
3539
+ return i18nString(UiStrings$1.MoveLineUp);
3540
+ };
3541
+ const moveLineDown$1 = () => {
3542
+ return i18nString(UiStrings$1.MoveLineDown);
3543
+ };
3544
+ const formatDocument = () => {
3545
+ return i18nString(UiStrings$1.FormatDocument);
3546
+ };
3547
+ const editorShowHover = () => {
3548
+ return i18nString(UiStrings$1.EditorShowHover);
3549
+ };
3550
+ const editorFormatDocumentForced = () => {
3551
+ return i18nString(UiStrings$1.EditorFormatDocumentForced);
3552
+ };
3553
+ const editorSelectNextOccurrence = () => {
3554
+ return i18nString(UiStrings$1.EditorSelectNextOccurrence);
3555
+ };
3556
+ const editorSelectAllOccurrences = () => {
3557
+ return i18nString(UiStrings$1.EditorSelectAllOccurrences);
3558
+ };
3559
+ const editorGoToDefinition = () => {
3560
+ return i18nString(UiStrings$1.EditorGoToDefinition);
3561
+ };
3562
+ const editorGoToTypeDefinition = () => {
3563
+ return i18nString(UiStrings$1.EditorGoToTypeDefinition);
3564
+ };
3565
+ const editorSelectInsideString = () => {
3566
+ return i18nString(UiStrings$1.EditorSelectInsideString);
3567
+ };
3568
+ const editorIndent = () => {
3569
+ return i18nString(UiStrings$1.EditorIndent);
3570
+ };
3571
+ const editorUnindent$1 = () => {
3572
+ return i18nString(UiStrings$1.EditorUnindent);
3573
+ };
3574
+ const editorSortLinesAscending = () => {
3575
+ return i18nString(UiStrings$1.EditorSortLinesAscending);
3576
+ };
3577
+ const editorToggleComment = () => {
3578
+ return i18nString(UiStrings$1.EditorToggleComment);
3579
+ };
3580
+ const editorSelectUp = () => {
3581
+ return i18nString(UiStrings$1.EditorSelectUp);
3582
+ };
3583
+ const editorSelectDown = () => {
3584
+ return i18nString(UiStrings$1.EditorSelectDown);
3585
+ };
3586
+ const editorOpenColorPicker = () => {
3587
+ return i18nString(UiStrings$1.EditorOpenColorPicker);
3588
+ };
3589
+ const editorCloseColorPicker = () => {
3590
+ return i18nString(UiStrings$1.EditorCloseColorPicker);
3591
+ };
3592
+ const editorCopyLineDown = () => {
3593
+ return i18nString(UiStrings$1.EditorCopyLineDown);
3594
+ };
3595
+ const editorCopyLineUp = () => {
3596
+ return i18nString(UiStrings$1.EditorCopyLineUp);
3597
+ };
3904
3598
 
3905
3599
  // @ts-ignore
3906
3600
  const goTo = async ({
@@ -4124,7 +3818,7 @@ const setPosition$1 = position => {
4124
3818
  };
4125
3819
 
4126
3820
  const Ctrl = 1;
4127
- const Alt = 2;
3821
+ const Alt$1 = 2;
4128
3822
 
4129
3823
  // TODO first change cursor position, then run go to definition
4130
3824
  // cursor should appear at mousedown position immediately
@@ -4175,7 +3869,7 @@ const handleSingleClickDefault = (editor, position) => {
4175
3869
  };
4176
3870
  const getFn = modifier => {
4177
3871
  switch (modifier) {
4178
- case Alt:
3872
+ case Alt$1:
4179
3873
  return handleSingleClickWithAlt;
4180
3874
  case Ctrl:
4181
3875
  return handleSingleClickWithCtrl;
@@ -5198,7 +4892,7 @@ const EmptyMatches$1 = [];
5198
4892
  const Dash = '-';
5199
4893
  const Dot = '.';
5200
4894
  const EmptyString = '';
5201
- const Space = ' ';
4895
+ const Space$1 = ' ';
5202
4896
  const Underline = '_';
5203
4897
  const T = 't';
5204
4898
  const isLowerCase = char => {
@@ -5215,7 +4909,7 @@ const isGap = (columnCharBefore, columnChar) => {
5215
4909
  case Underline:
5216
4910
  case EmptyString:
5217
4911
  case T:
5218
- case Space:
4912
+ case Space$1:
5219
4913
  case Dot:
5220
4914
  return true;
5221
4915
  }
@@ -7829,7 +7523,7 @@ const type = (editor, text) => {
7829
7523
  return scheduleDocumentAndCursorsSelections(editor, changes);
7830
7524
  };
7831
7525
 
7832
- const Slash = '/';
7526
+ const Slash$1 = '/';
7833
7527
 
7834
7528
  const CurlyOpen = '{';
7835
7529
  const CurlyClose = '}';
@@ -7943,7 +7637,7 @@ const typeWithAutoClosing = async (editor, text) => {
7943
7637
  }
7944
7638
  break;
7945
7639
  // case AutoClosing.ClosingAngleBracket: // TODO support auto closing when typing closing angle bracket of start tag
7946
- case Slash:
7640
+ case Slash$1:
7947
7641
  if (isAutoClosingTagsEnabled) {
7948
7642
  return typeWithAutoClosingTag(editor, text);
7949
7643
  }
@@ -8799,6 +8493,481 @@ const ensure = async (fontName, fontUrl) => {
8799
8493
  setLoaded(fontName);
8800
8494
  };
8801
8495
 
8496
+ const Backspace = 1;
8497
+ const Tab = 2;
8498
+ const Enter = 3;
8499
+ const Escape = 8;
8500
+ const Space = 9;
8501
+ const End = 255;
8502
+ const Home = 12;
8503
+ const LeftArrow = 13;
8504
+ const UpArrow = 14;
8505
+ const RightArrow = 15;
8506
+ const DownArrow = 16;
8507
+ const Delete = 18;
8508
+ const KeyA = 29;
8509
+ const KeyC = 31;
8510
+ const KeyD = 32;
8511
+ const KeyF = 34;
8512
+ const KeyH = 36;
8513
+ const KeyJ = 38;
8514
+ const KeyK = 39;
8515
+ const KeyL = 40;
8516
+ const KeyO = 43;
8517
+ const KeyV = 50;
8518
+ const KeyX = 52;
8519
+ const KeyZ = 54;
8520
+ const F2 = 58;
8521
+ const F3 = 59;
8522
+ const F4 = 60;
8523
+ const F12 = 68;
8524
+ const Period = 87;
8525
+ const Slash = 88;
8526
+ const BracketLeft = 90;
8527
+ const BracketRight = 92;
8528
+
8529
+ const CtrlCmd = 1 << 11 >>> 0;
8530
+ const Shift = 1 << 10 >>> 0;
8531
+ const Alt = 1 << 9 >>> 0;
8532
+
8533
+ const FocusEditor = 12;
8534
+ const FocusEditorCompletions = 9;
8535
+ const FocusEditorRename = 11;
8536
+ const FocusEditorText = 12;
8537
+ const FocusFindWidget = 16;
8538
+ const FocusSourceActions = 38;
8539
+ const FocusFindWidgetReplace = 43;
8540
+ const FocusFindWidgetReplaceButton = 46;
8541
+ const FocusFindWidgetReplaceAllButton = 47;
8542
+ const FocusFindWidgetCloseButton = 48;
8543
+ const FocusFindWidgetNextMatchButton = 49;
8544
+ const FocusFindWidgetPreviousMatchButton = 50;
8545
+ const FocusEditorCodeGenerator = 52;
8546
+
8547
+ const getKeyBindings = () => {
8548
+ return [{
8549
+ key: Escape,
8550
+ command: 'Editor.closeSourceAction',
8551
+ when: FocusSourceActions
8552
+ }, {
8553
+ key: DownArrow,
8554
+ command: 'EditorSourceActions.focusNext',
8555
+ when: FocusSourceActions
8556
+ }, {
8557
+ key: UpArrow,
8558
+ command: 'EditorSourceActions.focusPrevious',
8559
+ when: FocusSourceActions
8560
+ }, {
8561
+ key: Home,
8562
+ command: 'EditorSourceActions.focusFirst',
8563
+ when: FocusSourceActions
8564
+ }, {
8565
+ key: End,
8566
+ command: 'EditorSourceActions.focusLast',
8567
+ when: FocusSourceActions
8568
+ }, {
8569
+ key: Enter,
8570
+ command: 'EditorSourceActions.selectCurrent',
8571
+ when: FocusSourceActions
8572
+ }, {
8573
+ key: Enter,
8574
+ command: 'FindWidget.focusNext',
8575
+ when: FocusFindWidget
8576
+ }, {
8577
+ key: Shift | F4,
8578
+ command: 'FindWidget.focusPrevious',
8579
+ when: FocusFindWidget
8580
+ }, {
8581
+ key: F4,
8582
+ command: 'FindWidget.focusNext',
8583
+ when: FocusFindWidget
8584
+ }, {
8585
+ key: Shift | Tab,
8586
+ command: 'FindWidget.focusToggleReplace',
8587
+ when: FocusFindWidget
8588
+ }, {
8589
+ key: Tab,
8590
+ command: 'FindWidget.focusReplace',
8591
+ when: FocusFindWidget
8592
+ }, {
8593
+ key: Tab,
8594
+ command: 'FindWidget.focusPreviousMatchButton',
8595
+ when: FocusFindWidgetReplace
8596
+ }, {
8597
+ key: Alt | CtrlCmd | Enter,
8598
+ command: 'FindWidget.replaceAll',
8599
+ when: FocusFindWidgetReplace
8600
+ }, {
8601
+ key: Tab,
8602
+ command: 'FindWidget.focusNextMatchButton',
8603
+ when: FocusFindWidgetPreviousMatchButton
8604
+ }, {
8605
+ key: Shift | Tab,
8606
+ command: 'FindWidget.focusReplace',
8607
+ when: FocusFindWidgetPreviousMatchButton
8608
+ }, {
8609
+ key: Shift | Tab,
8610
+ command: 'FindWidget.focusPreviousMatchButton',
8611
+ when: FocusFindWidgetNextMatchButton
8612
+ }, {
8613
+ key: Tab,
8614
+ command: 'FindWidget.focusCloseButton',
8615
+ when: FocusFindWidgetNextMatchButton
8616
+ }, {
8617
+ key: Shift | Tab,
8618
+ command: 'FindWidget.focusNextMatchButton',
8619
+ when: FocusFindWidgetCloseButton
8620
+ }, {
8621
+ key: Tab,
8622
+ command: 'FindWidget.focusReplaceButton',
8623
+ when: FocusFindWidgetCloseButton
8624
+ }, {
8625
+ key: Shift | Tab,
8626
+ command: 'FindWidget.focusFind',
8627
+ when: FocusFindWidgetReplace
8628
+ }, {
8629
+ key: Tab,
8630
+ command: 'FindWidget.focusReplaceAllButton',
8631
+ when: FocusFindWidgetReplaceButton
8632
+ }, {
8633
+ key: Shift | Tab,
8634
+ command: 'FindWidget.focusCloseButton',
8635
+ when: FocusFindWidgetReplaceButton
8636
+ }, {
8637
+ key: Shift | Tab,
8638
+ command: 'FindWidget.focusReplaceButton',
8639
+ when: FocusFindWidgetReplaceAllButton
8640
+ }, {
8641
+ key: DownArrow,
8642
+ command: 'EditorCompletion.focusNext',
8643
+ when: FocusEditorCompletions
8644
+ }, {
8645
+ key: UpArrow,
8646
+ command: 'EditorCompletion.focusPrevious',
8647
+ when: FocusEditorCompletions
8648
+ }, {
8649
+ key: Enter,
8650
+ command: 'EditorCompletion.selectCurrent',
8651
+ when: FocusEditorCompletions
8652
+ }, {
8653
+ key: Escape,
8654
+ command: 'Editor.closeCompletion',
8655
+ when: FocusEditorCompletions
8656
+ }, {
8657
+ key: End,
8658
+ command: 'EditorCompletion.focusLast',
8659
+ when: FocusEditorCompletions
8660
+ }, {
8661
+ key: Home,
8662
+ command: 'EditorCompletion.focusFirst',
8663
+ when: FocusEditorCompletions
8664
+ }, {
8665
+ key: CtrlCmd | Space,
8666
+ command: 'EditorCompletion.toggleDetails',
8667
+ when: FocusEditorCompletions
8668
+ }, {
8669
+ key: CtrlCmd | RightArrow,
8670
+ command: 'Editor.cursorWordRight',
8671
+ when: FocusEditorText
8672
+ }, {
8673
+ key: CtrlCmd | LeftArrow,
8674
+ command: 'Editor.cursorWordLeft',
8675
+ when: FocusEditorText
8676
+ }, {
8677
+ key: Alt | Backspace,
8678
+ command: 'Editor.deleteWordPartLeft',
8679
+ when: FocusEditorText
8680
+ }, {
8681
+ key: Alt | Delete,
8682
+ command: 'Editor.deleteWordPartRight',
8683
+ when: FocusEditorText
8684
+ }, {
8685
+ key: CtrlCmd | Backspace,
8686
+ command: 'Editor.deleteWordLeft',
8687
+ when: FocusEditorText
8688
+ }, {
8689
+ key: CtrlCmd | Delete,
8690
+ command: 'Editor.deleteWordRight',
8691
+ when: FocusEditorText
8692
+ }, {
8693
+ key: CtrlCmd | KeyD,
8694
+ command: 'Editor.selectNextOccurrence',
8695
+ when: FocusEditorText
8696
+ }, {
8697
+ key: CtrlCmd | KeyJ,
8698
+ command: 'Editor.openColorPicker',
8699
+ when: FocusEditorText
8700
+ }, {
8701
+ key: CtrlCmd | Period,
8702
+ command: 'Editor.showSourceActions2',
8703
+ when: FocusEditorText
8704
+ }, {
8705
+ key: Tab,
8706
+ command: 'Editor.handleTab',
8707
+ when: FocusEditorText
8708
+ }, {
8709
+ key: Shift | Tab,
8710
+ command: 'Editor.unindent',
8711
+ when: FocusEditorText
8712
+ }, {
8713
+ key: CtrlCmd | BracketLeft,
8714
+ command: 'Editor.indentLess',
8715
+ when: FocusEditorText
8716
+ }, {
8717
+ key: Escape,
8718
+ command: 'Editor.closeFind',
8719
+ when: FocusFindWidget
8720
+ }, {
8721
+ key: CtrlCmd | KeyF,
8722
+ command: 'Editor.openFind2',
8723
+ when: FocusEditorText
8724
+ }, {
8725
+ key: CtrlCmd | KeyK,
8726
+ command: 'Editor.openCodeGenerator',
8727
+ when: FocusEditorText
8728
+ }, {
8729
+ key: Escape,
8730
+ command: 'Editor.closeCodeGenerator',
8731
+ when: FocusEditorCodeGenerator
8732
+ }, {
8733
+ key: Enter,
8734
+ command: 'EditorCodeGenerator.accept',
8735
+ when: FocusEditorCodeGenerator
8736
+ }, {
8737
+ key: CtrlCmd | BracketRight,
8738
+ command: 'Editor.indentMore',
8739
+ when: FocusEditorText
8740
+ }, {
8741
+ key: Shift | LeftArrow,
8742
+ command: 'Editor.selectCharacterLeft',
8743
+ when: FocusEditorText
8744
+ }, {
8745
+ key: CtrlCmd | Shift | LeftArrow,
8746
+ command: 'Editor.selectWordLeft',
8747
+ when: FocusEditorText
8748
+ }, {
8749
+ key: Shift | RightArrow,
8750
+ command: 'Editor.selectCharacterRight',
8751
+ when: FocusEditorText
8752
+ }, {
8753
+ key: CtrlCmd | Shift | RightArrow,
8754
+ command: 'Editor.selectWordRight',
8755
+ when: FocusEditorText
8756
+ }, {
8757
+ key: CtrlCmd | KeyL,
8758
+ command: 'Editor.selectLine',
8759
+ when: FocusEditorText
8760
+ }, {
8761
+ key: CtrlCmd | Shift | Backspace,
8762
+ command: 'Editor.deleteAllLeft',
8763
+ when: FocusEditorText
8764
+ }, {
8765
+ key: CtrlCmd | Shift | Delete,
8766
+ command: 'Editor.deleteAllRight',
8767
+ when: FocusEditorText
8768
+ }, {
8769
+ key: Escape,
8770
+ command: 'Editor.cancelSelection',
8771
+ when: FocusEditorText
8772
+ }, {
8773
+ key: CtrlCmd | KeyZ,
8774
+ command: 'Editor.undo',
8775
+ when: FocusEditorText
8776
+ }, {
8777
+ key: LeftArrow,
8778
+ command: 'Editor.cursorLeft',
8779
+ when: FocusEditorText
8780
+ }, {
8781
+ key: RightArrow,
8782
+ command: 'Editor.cursorRight',
8783
+ when: FocusEditorText
8784
+ }, {
8785
+ key: UpArrow,
8786
+ command: 'Editor.cursorUp',
8787
+ when: FocusEditorText
8788
+ }, {
8789
+ key: DownArrow,
8790
+ command: 'Editor.cursorDown',
8791
+ when: FocusEditorText
8792
+ }, {
8793
+ key: Backspace,
8794
+ command: 'Editor.deleteLeft',
8795
+ when: FocusEditorText
8796
+ }, {
8797
+ key: Delete,
8798
+ command: 'Editor.deleteRight',
8799
+ when: FocusEditorText
8800
+ }, {
8801
+ key: Enter,
8802
+ command: 'Editor.insertLineBreak',
8803
+ when: FocusEditorText
8804
+ }, {
8805
+ key: CtrlCmd | Shift | KeyD,
8806
+ command: 'Editor.copyLineDown',
8807
+ when: FocusEditorText
8808
+ }, {
8809
+ key: CtrlCmd | Shift | DownArrow,
8810
+ command: 'Editor.moveLineDown',
8811
+ when: FocusEditorText
8812
+ }, {
8813
+ key: CtrlCmd | Shift | UpArrow,
8814
+ command: 'Editor.moveLineUp',
8815
+ when: FocusEditorText
8816
+ }, {
8817
+ key: CtrlCmd | Space,
8818
+ command: 'Editor.openCompletion',
8819
+ when: FocusEditorText
8820
+ }, {
8821
+ key: F2,
8822
+ command: 'Editor.openRename',
8823
+ when: FocusEditorText
8824
+ }, {
8825
+ key: Enter,
8826
+ command: 'EditorRename.accept',
8827
+ when: FocusEditorRename
8828
+ }, {
8829
+ key: Escape,
8830
+ command: 'Editor.closeRename',
8831
+ when: FocusEditorRename
8832
+ }, {
8833
+ key: Home,
8834
+ command: 'Editor.cursorHome',
8835
+ when: FocusEditorText
8836
+ }, {
8837
+ key: End,
8838
+ command: 'Editor.cursorEnd',
8839
+ when: FocusEditorText
8840
+ }, {
8841
+ key: CtrlCmd | Slash,
8842
+ command: 'Editor.toggleComment',
8843
+ when: FocusEditorText
8844
+ }, {
8845
+ key: CtrlCmd | KeyC,
8846
+ command: 'Editor.copy',
8847
+ when: FocusEditorText
8848
+ }, {
8849
+ key: CtrlCmd | KeyA,
8850
+ command: 'Editor.selectAll',
8851
+ when: FocusEditorText
8852
+ }, {
8853
+ key: CtrlCmd | KeyH,
8854
+ command: 'Editor.showHover2',
8855
+ when: FocusEditorText
8856
+ }, {
8857
+ key: CtrlCmd | KeyX,
8858
+ command: 'Editor.cut',
8859
+ when: FocusEditorText
8860
+ }, {
8861
+ key: CtrlCmd | KeyV,
8862
+ command: 'Editor.paste',
8863
+ when: FocusEditorText
8864
+ }, {
8865
+ key: Alt | LeftArrow,
8866
+ command: 'Editor.cursorWordPartLeft',
8867
+ when: FocusEditorText
8868
+ }, {
8869
+ key: Alt | RightArrow,
8870
+ command: 'Editor.cursorWordPartRight',
8871
+ when: FocusEditorText
8872
+ }, {
8873
+ key: Alt | F3,
8874
+ command: 'Editor.selectAllOccurrences',
8875
+ when: FocusEditorText
8876
+ }, {
8877
+ key: Alt | Shift | UpArrow,
8878
+ command: 'Editor.addCursorAbove',
8879
+ when: FocusEditorText
8880
+ }, {
8881
+ key: Alt | Shift | DownArrow,
8882
+ command: 'Editor.addCursorBelow',
8883
+ when: FocusEditorText
8884
+ }, {
8885
+ key: Alt | Shift | F12,
8886
+ command: 'Editor.findAllReferences',
8887
+ when: FocusEditorText
8888
+ }, {
8889
+ key: Alt | Shift | KeyO,
8890
+ command: 'Editor.organizeImports',
8891
+ when: FocusEditorText
8892
+ }, {
8893
+ key: CtrlCmd | Shift | Space,
8894
+ command: 'Editor.selectionGrow',
8895
+ when: FocusEditor
8896
+ }];
8897
+ };
8898
+
8899
+ const getQuickPickMenuEntries = () => {
8900
+ return [{
8901
+ id: 'Editor.format',
8902
+ label: formatDocument()
8903
+ }, {
8904
+ id: 'Editor.showHover',
8905
+ label: editorShowHover()
8906
+ }, {
8907
+ id: 'Editor.formatForced',
8908
+ label: editorFormatDocumentForced()
8909
+ }, {
8910
+ id: 'Editor.selectNextOccurrence',
8911
+ label: editorSelectNextOccurrence()
8912
+ }, {
8913
+ id: 'Editor.selectAllOccurrences',
8914
+ label: editorSelectAllOccurrences()
8915
+ }, {
8916
+ id: 'Editor.goToDefinition',
8917
+ label: editorGoToDefinition()
8918
+ }, {
8919
+ id: 'Editor.goToTypeDefinition',
8920
+ label: editorGoToTypeDefinition()
8921
+ }, {
8922
+ id: 'Editor.selectInsideString',
8923
+ label: editorSelectInsideString()
8924
+ }, {
8925
+ id: 'Editor.indent',
8926
+ label: editorIndent(),
8927
+ aliases: ['Indent More', 'DeIndent']
8928
+ }, {
8929
+ id: 'Editor.unindent',
8930
+ label: editorUnindent$1(),
8931
+ aliases: ['Indent Less', 'DeIndent']
8932
+ }, {
8933
+ id: 'Editor.sortLinesAscending',
8934
+ label: editorSortLinesAscending()
8935
+ }, {
8936
+ id: 'Editor.toggleComment',
8937
+ label: editorToggleComment()
8938
+ }, {
8939
+ id: 'Editor.selectUp',
8940
+ label: editorSelectUp()
8941
+ }, {
8942
+ id: 'Editor.selectDown',
8943
+ label: editorSelectDown()
8944
+ }, {
8945
+ id: 'Editor.toggleBlockComment',
8946
+ label: toggleBlockComment$1()
8947
+ }, {
8948
+ id: 'Editor.openColorPicker',
8949
+ label: editorOpenColorPicker()
8950
+ }, {
8951
+ id: 'Editor.closeColorPicker',
8952
+ label: editorCloseColorPicker()
8953
+ }, {
8954
+ id: 'Editor.copyLineDown',
8955
+ label: editorCopyLineDown()
8956
+ }, {
8957
+ id: 'Editor.copyLineUp',
8958
+ label: editorCopyLineUp()
8959
+ }, {
8960
+ id: 'Editor.moveLineDown',
8961
+ label: moveLineDown$1()
8962
+ }, {
8963
+ id: 'Editor.moveLineUp',
8964
+ label: moveLineUp$1()
8965
+ }, {
8966
+ id: 'Editor.showSourceActions2',
8967
+ label: sourceAction()
8968
+ }];
8969
+ };
8970
+
8802
8971
  const getSelections = editorUid => {
8803
8972
  const editor = getEditor(editorUid);
8804
8973
  const {
@@ -9746,7 +9915,7 @@ const keep = [
9746
9915
  // 'ColorPicker.handleSliderPointerDown',
9747
9916
  // 'ColorPicker.handleSliderPointerMove',
9748
9917
  // 'ColorPicker.loadContent',
9749
- 'Editor.create', 'Editor.getWordAt', 'Editor.getWordBefore', 'Editor.offsetAt', 'Editor.render', 'Editor.getKeyBindings',
9918
+ 'Editor.create', 'Editor.getWordAt', 'Editor.getWordBefore', 'Editor.offsetAt', 'Editor.render', 'Editor.getKeyBindings', 'Editor.getQuickPickMenuEntries',
9750
9919
  // 'ColorPicker.render',
9751
9920
  'Editor.getText', 'Editor.getSelections', 'Font.ensure', 'Hover.getHoverInfo', 'Hover.handleSashPointerDown', 'Hover.handleSashPointerMove', 'Hover.handleSashPointerUp', 'Hover.loadContent', 'Hover.render', 'Initialize.initialize'];
9752
9921
 
@@ -9878,6 +10047,7 @@ const commandMap = {
9878
10047
  'Editor.findAllReferences': findAllReferences,
9879
10048
  'Editor.format': format,
9880
10049
  'Editor.getKeyBindings': getKeyBindings,
10050
+ 'Editor.getQuickPickMenuEntries': getQuickPickMenuEntries,
9881
10051
  'Editor.getSelections': getSelections,
9882
10052
  'Editor.getText': getText,
9883
10053
  'Editor.getWordAt': getWordAt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "5.11.0",
3
+ "version": "5.13.0",
4
4
  "description": "",
5
5
  "main": "dist/editorWorkerMain.js",
6
6
  "type": "module",