@lvce-editor/hover-worker 2.14.0 → 2.16.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/hoverWorkerMain.js +5 -2
- package/package.json +1 -1
package/dist/hoverWorkerMain.js
CHANGED
|
@@ -1798,6 +1798,7 @@ const getLineInfoVirtualDom = lineInfo => {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
return dom;
|
|
1800
1800
|
};
|
|
1801
|
+
|
|
1801
1802
|
const getLineInfosVirtualDom = lineInfos => {
|
|
1802
1803
|
const dom = lineInfos.flatMap(getLineInfoVirtualDom);
|
|
1803
1804
|
return dom;
|
|
@@ -1805,6 +1806,8 @@ const getLineInfosVirtualDom = lineInfos => {
|
|
|
1805
1806
|
|
|
1806
1807
|
/* eslint-disable unicorn/no-immediate-mutation */
|
|
1807
1808
|
|
|
1809
|
+
const hoverClassName = mergeClassNames(Viewlet, EditorHover);
|
|
1810
|
+
const problemClassName = mergeClassNames(HoverDisplayString, HoverProblem);
|
|
1808
1811
|
const hoverProblemMessage = {
|
|
1809
1812
|
childCount: 1,
|
|
1810
1813
|
className: HoverProblemMessage,
|
|
@@ -1834,13 +1837,13 @@ const getHoverVirtualDom = (lineInfos, documentation, diagnostics) => {
|
|
|
1834
1837
|
const dom = [];
|
|
1835
1838
|
dom.push({
|
|
1836
1839
|
childCount: getChildCount(lineInfos, documentation, diagnostics) + 1,
|
|
1837
|
-
className:
|
|
1840
|
+
className: hoverClassName,
|
|
1838
1841
|
type: Div
|
|
1839
1842
|
});
|
|
1840
1843
|
if (diagnostics && diagnostics.length > 0) {
|
|
1841
1844
|
dom.push({
|
|
1842
1845
|
childCount: diagnostics.length * 2,
|
|
1843
|
-
className:
|
|
1846
|
+
className: problemClassName,
|
|
1844
1847
|
type: Div
|
|
1845
1848
|
});
|
|
1846
1849
|
for (const diagnostic of diagnostics) {
|