@lvce-editor/editor-worker 19.29.0 → 19.29.1

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.
@@ -7787,20 +7787,20 @@ const loadHoverContent = async (state, position) => {
7787
7787
  };
7788
7788
  };
7789
7789
 
7790
- const showHover2 = async (editor, position) => {
7790
+ const showHover$1 = async (editor, position) => {
7791
7791
  const newStateGenerator = async state => {
7792
7792
  return loadHoverContent(state, position);
7793
7793
  };
7794
7794
  return addWidgetToEditor(Hover, FocusEditorHover, editor, create$5, newStateGenerator);
7795
7795
  };
7796
7796
 
7797
- const showHover$1 = async (editor, position, token) => {
7797
+ const showHover = async (editor, position, token) => {
7798
7798
  const instance = get$8(editor.uid);
7799
7799
  if (!instance) {
7800
7800
  return;
7801
7801
  }
7802
7802
  const latestEditor = instance.newState;
7803
- const newEditor = await showHover2(latestEditor, position);
7803
+ const newEditor = await showHover$1(latestEditor, position);
7804
7804
  const latestInstance = get$8(editor.uid);
7805
7805
  if (latestEditor === newEditor || !latestInstance || latestInstance.newState !== latestEditor || get$1().token !== token) {
7806
7806
  return;
@@ -7829,7 +7829,7 @@ const onHoverIdle = async token => {
7829
7829
  return;
7830
7830
  }
7831
7831
  const position = await at(editor, x, y);
7832
- await showHover$1(editor, position, token);
7832
+ await showHover(editor, position, token);
7833
7833
  } catch {
7834
7834
  // Hover providers are optional and should not surface errors from an idle mouse event.
7835
7835
  }
@@ -9793,12 +9793,6 @@ const setText = (editor, text) => {
9793
9793
  return scheduleDocumentAndCursorsSelections(editor, changes);
9794
9794
  };
9795
9795
 
9796
- const EditorHover = 'EditorHover';
9797
- const showHover = async state => {
9798
- await invoke$b('Viewlet.openWidget', EditorHover);
9799
- return state;
9800
- };
9801
-
9802
9796
  const clampIndex = (index, length) => {
9803
9797
  return Math.max(0, Math.min(index, length - 1));
9804
9798
  };
@@ -11768,7 +11762,7 @@ const getKeyBindings = () => {
11768
11762
  key: CtrlCmd | KeyA,
11769
11763
  when: FocusEditorText
11770
11764
  }, {
11771
- command: 'Editor.showHover2',
11765
+ command: 'Editor.showHover',
11772
11766
  key: CtrlCmd | KeyH,
11773
11767
  when: FocusEditorText
11774
11768
  }, {
@@ -13963,8 +13957,8 @@ const commandMap = {
13963
13957
  'Editor.setSelections': wrapCommand(setSelections),
13964
13958
  'Editor.setSelections2': setSelections2,
13965
13959
  'Editor.setText': wrapCommand(setText),
13966
- 'Editor.showHover': showHover,
13967
- 'Editor.showHover2': wrapCommand(showHover2),
13960
+ 'Editor.showHover': wrapCommand(showHover$1),
13961
+ 'Editor.showHover2': wrapCommand(showHover$1),
13968
13962
  'Editor.showSignatureHelp': wrapCommand(showSignatureHelp),
13969
13963
  'Editor.showSourceActions': wrapCommand(showSourceActions),
13970
13964
  'Editor.showSourceActions2': wrapCommand(showSourceActions),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.29.0",
3
+ "version": "19.29.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"