@lvce-editor/test-worker 1.6.0 → 1.7.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.
@@ -368,14 +368,7 @@ const invoke$1 = async (ipc, method, ...params) => {
368
368
  const result = unwrapJsonRpcResult(responseMessage);
369
369
  return result;
370
370
  };
371
-
372
- // TODO deprecated old typings,
373
- // always use automatic transferrable detection
374
- const invokeAndTransfer$1 = async (ipc, handle, method, ...params) => {
375
- if (typeof handle === 'string') {
376
- params = [method, ...params];
377
- method = handle;
378
- }
371
+ const invokeAndTransfer$1 = async (ipc, method, ...params) => {
379
372
  const {
380
373
  message,
381
374
  promise
@@ -990,9 +983,19 @@ const openSourceActions = async () => {
990
983
  const sourceActionsSelectCurrent = async () => {
991
984
  await invoke('EditorSourceActions.selectCurrent');
992
985
  };
986
+ const openCompletionDetails = async () => {
987
+ await invoke('EditorCompletion.openDetails');
988
+ };
989
+ const closeCompletionDetails = async () => {
990
+ await invoke('EditorCompletion.closeDetails');
991
+ };
992
+ const toggleCompletionDetails = async () => {
993
+ await invoke('EditorCompletion.toggleDetails');
994
+ };
993
995
 
994
996
  const TestFrameWorkComponentEditor = {
995
997
  __proto__: null,
998
+ closeCompletionDetails,
996
999
  copyLineDown,
997
1000
  cursorCharacterLeft,
998
1001
  cursorCharacterRight,
@@ -1010,6 +1013,7 @@ const TestFrameWorkComponentEditor = {
1010
1013
  invokeBraceCompletion,
1011
1014
  invokeTabCompletion,
1012
1015
  openCompletion,
1016
+ openCompletionDetails,
1013
1017
  openEditorContextMenu,
1014
1018
  openFindWidget,
1015
1019
  openHover,
@@ -1018,6 +1022,7 @@ const TestFrameWorkComponentEditor = {
1018
1022
  setDeltaY,
1019
1023
  setSelections,
1020
1024
  sourceActionsSelectCurrent,
1025
+ toggleCompletionDetails,
1021
1026
  type
1022
1027
  };
1023
1028
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "",
5
5
  "main": "dist/testWorkerMain.js",
6
6
  "type": "module",
@@ -66,5 +66,12 @@
66
66
  "ignores": [
67
67
  "distmin"
68
68
  ]
69
+ },
70
+ "nodemonConfig": {
71
+ "watch": [
72
+ "src"
73
+ ],
74
+ "ext": "ts,js",
75
+ "exec": "node scripts/build.js"
69
76
  }
70
77
  }