@lvce-editor/hover-worker 2.18.1 → 2.18.2

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.
@@ -1470,11 +1470,12 @@ const Text = 12;
1470
1470
  const EditorWorker = 99;
1471
1471
  const ExtensionHostWorker = 44;
1472
1472
  const ExtensionManagementWorker = 9006;
1473
+ const RendererWorker = 1;
1473
1474
 
1474
1475
  const SetFocusContext = 'Viewlet.setFocusContext';
1475
1476
 
1476
1477
  const {
1477
- invoke: invoke$2,
1478
+ invoke: invoke$4,
1478
1479
  invokeAndTransfer,
1479
1480
  set: set$5
1480
1481
  } = create$1(EditorWorker);
@@ -1482,18 +1483,18 @@ const sendMessagePortToExtensionManagementWorker$1 = async port => {
1482
1483
  await invokeAndTransfer('SendMessagePortToExtensionManagementWorker.sendMessagePortToExtensionManagementWorker', port, 0);
1483
1484
  };
1484
1485
  const getLines$1 = async editorUid => {
1485
- const lines = await invoke$2('Editor.getLines2', editorUid);
1486
+ const lines = await invoke$4('Editor.getLines2', editorUid);
1486
1487
  return lines;
1487
1488
  };
1488
1489
  const getWordAtOffset2$1 = async editorUid => {
1489
- return invoke$2('Editor.getWordAtOffset2', editorUid);
1490
+ return invoke$4('Editor.getWordAtOffset2', editorUid);
1490
1491
  };
1491
1492
  const getWordBefore$1 = async (editorUid, rowIndex, columnIndex) => {
1492
- return invoke$2('Editor.getWordBefore2', editorUid, rowIndex, columnIndex);
1493
+ return invoke$4('Editor.getWordBefore2', editorUid, rowIndex, columnIndex);
1493
1494
  };
1494
1495
  const getUri$1 = async editorUid => {
1495
1496
  // @ts-ignore
1496
- return invoke$2('Editor.getUri', editorUid);
1497
+ return invoke$4('Editor.getUri', editorUid);
1497
1498
  };
1498
1499
 
1499
1500
  const {
@@ -1501,15 +1502,18 @@ const {
1501
1502
  } = create$1(ExtensionHostWorker);
1502
1503
 
1503
1504
  const {
1504
- invoke: invoke$1,
1505
+ invoke: invoke$3,
1505
1506
  set: set$3
1506
1507
  } = create$1(ExtensionManagementWorker);
1507
1508
 
1509
+ const {
1510
+ invoke: invoke$2} = create$1(RendererWorker);
1511
+
1508
1512
  const getLines = (...args) => getLines$1(...args);
1509
1513
  const getUri = (...args) => getUri$1(...args);
1510
1514
  const getWordAtOffset2 = (...args) => getWordAtOffset2$1(...args);
1511
1515
  const getWordBefore = (...args) => getWordBefore$1(...args);
1512
- const invoke = (...args) => invoke$2(...args);
1516
+ const invoke$1 = (...args) => invoke$4(...args);
1513
1517
  const sendMessagePortToExtensionManagementWorker = (...args) => sendMessagePortToExtensionManagementWorker$1(...args);
1514
1518
  const set$2 = (...args) => set$5(...args);
1515
1519
 
@@ -1523,7 +1527,7 @@ const close = async state => {
1523
1527
  editorUid
1524
1528
  } = state;
1525
1529
  // @ts-ignore
1526
- await invoke('Editor.closeWidget2', editorUid, Hover, 'Hovers', FocusEditorHovers);
1530
+ await invoke$1('Editor.closeWidget2', editorUid, Hover, 'Hovers', FocusEditorHovers);
1527
1531
  return state;
1528
1532
  };
1529
1533
 
@@ -1778,7 +1782,7 @@ const getOffsetAtCursor = editorUid => {
1778
1782
  };
1779
1783
 
1780
1784
  const getPositionAtCursor = async editorUid => {
1781
- const position = await invoke('Editor.getPositionAtCursor', editorUid);
1785
+ const position = await invoke$1('Editor.getPositionAtCursor', editorUid);
1782
1786
  return position;
1783
1787
  };
1784
1788
 
@@ -1793,7 +1797,7 @@ const getTextDocument = async (editorUid, languageId) => {
1793
1797
  };
1794
1798
  const executeHoverProvider = async (editorUid, editorLanguageId, offset) => {
1795
1799
  const textDocument = await getTextDocument(editorUid, editorLanguageId);
1796
- return invoke$1('Extensions.executeHoverProvider', textDocument, offset);
1800
+ return invoke$3('Extensions.executeHoverProvider', textDocument, offset);
1797
1801
  };
1798
1802
 
1799
1803
  const getHover = async (editorUid, editorLanguageId, offset) => {
@@ -1831,7 +1835,7 @@ const getEditorHoverInfo = async (editorUid, editorLanguageId, hoverFullWidth, h
1831
1835
  const offset = getOffsetAtCursor();
1832
1836
 
1833
1837
  // @ts-ignore
1834
- const diagnostics = await invoke('Editor.getDiagnostics', editorUid);
1838
+ const diagnostics = await invoke$1('Editor.getDiagnostics', editorUid);
1835
1839
  const wordPart = await getWordBefore(editorUid, rowIndex, columnIndex);
1836
1840
  const wordStart = columnIndex - wordPart.length;
1837
1841
 
@@ -1877,6 +1881,8 @@ const getEditorHoverInfo = async (editorUid, editorLanguageId, hoverFullWidth, h
1877
1881
 
1878
1882
  const getWordAtOffset = getWordAtOffset2;
1879
1883
 
1884
+ const invoke = (...args) => invoke$2(...args);
1885
+
1880
1886
  const loadContent = async state => {
1881
1887
  const {
1882
1888
  editorLanguageId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/hover-worker",
3
- "version": "2.18.1",
3
+ "version": "2.18.2",
4
4
  "description": "Web Worker for the find widget in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",