@lvce-editor/editor-worker 3.21.0 → 3.22.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.
@@ -3301,12 +3301,6 @@ const noResults$1 = () => {
3301
3301
  const sourceAction = () => {
3302
3302
  return i18nString(UiStrings$1.SourceAction);
3303
3303
  };
3304
- const organizeImports$1 = () => {
3305
- return i18nString(UiStrings$1.OrganizeImports);
3306
- };
3307
- const sortImports = () => {
3308
- return i18nString(UiStrings$1.SortImports);
3309
- };
3310
3304
 
3311
3305
  // @ts-ignore
3312
3306
  const goTo = async ({
@@ -6539,14 +6533,9 @@ const showSourceActions$1 = async editor => {
6539
6533
  return editor;
6540
6534
  };
6541
6535
 
6536
+ // TODO maybe ask extension host worker instead
6542
6537
  const getEditorSourceActions = async () => {
6543
- const sourceActions = [{
6544
- name: organizeImports$1(),
6545
- command: 'Editor.organizeImports'
6546
- }, {
6547
- name: sortImports(),
6548
- command: 'Editor.sortImports'
6549
- }];
6538
+ const sourceActions = await invoke$3('GetEditorSourceActions.getEditorSourceActions');
6550
6539
  return sourceActions;
6551
6540
  };
6552
6541
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "3.21.0",
3
+ "version": "3.22.0",
4
4
  "description": "",
5
5
  "main": "dist/editorWorkerMain.js",
6
6
  "type": "module",