@lvce-editor/editor-worker 5.5.0 → 5.6.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.
- package/dist/editorWorkerMain.js +4 -3
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -6831,7 +6831,7 @@ const getEditorHoverInfo = async (editorUid, position) => {
|
|
|
6831
6831
|
} = hover;
|
|
6832
6832
|
const tokenizerPath = '';
|
|
6833
6833
|
const lineInfos = await tokenizeCodeBlock(displayString, displayStringLanguageId || fallbackDisplayStringLanguageId, tokenizerPath);
|
|
6834
|
-
const wordPart =
|
|
6834
|
+
const wordPart = getWordBefore(editor, rowIndex, columnIndex);
|
|
6835
6835
|
const wordStart = columnIndex - wordPart.length;
|
|
6836
6836
|
await measureTextBlockHeight(documentation, hoverDocumentationFontFamily, hoverDocumentationFontSize, hoverDocumentationLineHeight, hoverDocumentationWidth);
|
|
6837
6837
|
const {
|
|
@@ -6869,6 +6869,7 @@ const loadHoverContent = async state => {
|
|
|
6869
6869
|
documentation,
|
|
6870
6870
|
x,
|
|
6871
6871
|
y,
|
|
6872
|
+
width: 600,
|
|
6872
6873
|
diagnostics: matchingDiagnostics
|
|
6873
6874
|
};
|
|
6874
6875
|
};
|
|
@@ -8209,10 +8210,10 @@ const renderBounds$7 = {
|
|
|
8209
8210
|
const {
|
|
8210
8211
|
x,
|
|
8211
8212
|
y,
|
|
8213
|
+
width,
|
|
8212
8214
|
height
|
|
8213
8215
|
} = newState;
|
|
8214
|
-
|
|
8215
|
-
return [SetBounds, x, y, renderWidth, height];
|
|
8216
|
+
return [SetBounds, x, y, width, height];
|
|
8216
8217
|
}
|
|
8217
8218
|
};
|
|
8218
8219
|
const render$g = [renderHoverDom, renderBounds$7];
|