@lvce-editor/test-worker 1.9.0 → 1.11.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.
@@ -1008,7 +1008,7 @@ const insertLineBreak = async () => {
1008
1008
  await invoke('Editor.insertLineBreak');
1009
1009
  };
1010
1010
  const openSourceActions = async () => {
1011
- await invoke('Editor.showSourceActions');
1011
+ await invoke('Editor.showSourceActions2');
1012
1012
  };
1013
1013
  const sourceActionsSelectCurrent = async () => {
1014
1014
  await invoke('EditorSourceActions.selectCurrent');
@@ -1022,17 +1022,67 @@ const closeCompletionDetails = async () => {
1022
1022
  const toggleCompletionDetails = async () => {
1023
1023
  await invoke('EditorCompletion.toggleDetails');
1024
1024
  };
1025
+ const organizeImports = async () => {
1026
+ await invoke('Editor.organizeImports');
1027
+ };
1028
+ const toggleLineComment = async () => {
1029
+ await invoke('Editor.toggleLineComment');
1030
+ };
1031
+ const toggleBlockComment = async () => {
1032
+ await invoke('Editor.toggleBlockComment');
1033
+ };
1034
+ const selectAll = async () => {
1035
+ await invoke('Editor.toggleBlockComment');
1036
+ };
1037
+ const openColorPicker = async () => {
1038
+ await invoke('Editor.openColorPicker');
1039
+ };
1040
+ const openFind = async () => {
1041
+ await invoke('Editor.openFind2');
1042
+ };
1043
+ const deleteAllLeft = async () => {
1044
+ await invoke('Editor.deleteAllLeft');
1045
+ };
1046
+ const deleteAllRight = async () => {
1047
+ await invoke('Editor.deleteAllRight');
1048
+ };
1049
+ const cursorWordPartLeft = async () => {
1050
+ await invoke('Editor.cursorWordPartLeft');
1051
+ };
1052
+ const cursorWordPartRight = async () => {
1053
+ await invoke('Editor.cursorWordPartRight');
1054
+ };
1055
+ const cursorEnd = async () => {
1056
+ await invoke('Editor.cursorEnd');
1057
+ };
1058
+ const cursorHome = async () => {
1059
+ await invoke('Editor.cursorHome');
1060
+ };
1061
+ const copyLineUp = async () => {
1062
+ await invoke('Editor.copyLineUp');
1063
+ };
1064
+ const closeColorPicker = async () => {
1065
+ await invoke('Editor.closeColorPicker');
1066
+ };
1025
1067
 
1026
1068
  const TestFrameWorkComponentEditor = {
1027
1069
  __proto__: null,
1070
+ closeColorPicker,
1028
1071
  closeCompletionDetails,
1029
1072
  copyLineDown,
1073
+ copyLineUp,
1030
1074
  cursorCharacterLeft,
1031
1075
  cursorCharacterRight,
1032
1076
  cursorDown,
1077
+ cursorEnd,
1078
+ cursorHome,
1033
1079
  cursorUp,
1034
1080
  cursorWordLeft,
1081
+ cursorWordPartLeft,
1082
+ cursorWordPartRight,
1035
1083
  cursorWordRight,
1084
+ deleteAllLeft,
1085
+ deleteAllRight,
1036
1086
  executeTabCompletion,
1037
1087
  findAllImplementations,
1038
1088
  findAllReferences,
@@ -1042,17 +1092,23 @@ const TestFrameWorkComponentEditor = {
1042
1092
  insertLineBreak,
1043
1093
  invokeBraceCompletion,
1044
1094
  invokeTabCompletion,
1095
+ openColorPicker,
1045
1096
  openCompletion,
1046
1097
  openCompletionDetails,
1047
1098
  openEditorContextMenu,
1099
+ openFind,
1048
1100
  openFindWidget,
1049
1101
  openHover,
1050
1102
  openSourceActions,
1103
+ organizeImports,
1104
+ selectAll,
1051
1105
  setCursor,
1052
1106
  setDeltaY,
1053
1107
  setSelections,
1054
1108
  sourceActionsSelectCurrent,
1109
+ toggleBlockComment,
1055
1110
  toggleCompletionDetails,
1111
+ toggleLineComment,
1056
1112
  type
1057
1113
  };
1058
1114
 
@@ -1357,9 +1413,15 @@ const focusPrevious$1 = async () => {
1357
1413
  const selectItem = async label => {
1358
1414
  await invoke('QuickPick.selectItem', label);
1359
1415
  };
1416
+ const executeCommand = async label => {
1417
+ await invoke('QuickPick.showCommands');
1418
+ await invoke('QuickPick.handleInput', label, 0);
1419
+ await invoke('QuickPick.selectItem', label);
1420
+ };
1360
1421
 
1361
1422
  const TestFrameWorkComponentQuickPick = {
1362
1423
  __proto__: null,
1424
+ executeCommand,
1363
1425
  focusIndex: focusIndex$1,
1364
1426
  focusNext: focusNext$1,
1365
1427
  focusPrevious: focusPrevious$1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "",
5
5
  "main": "dist/testWorkerMain.js",
6
6
  "type": "module",