@lvce-editor/problems-view 1.11.0 → 1.12.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/problemsViewWorkerMain.js +17 -14
- package/package.json +1 -1
|
@@ -890,7 +890,7 @@ const send$1 = (transport, method, ...params) => {
|
|
|
890
890
|
const message = create$4$1(method, params);
|
|
891
891
|
transport.send(message);
|
|
892
892
|
};
|
|
893
|
-
const invoke
|
|
893
|
+
const invoke = (ipc, method, ...params) => {
|
|
894
894
|
return invokeHelper(ipc, method, params, false);
|
|
895
895
|
};
|
|
896
896
|
const invokeAndTransfer = (ipc, method, ...params) => {
|
|
@@ -923,7 +923,7 @@ const createRpc = ipc => {
|
|
|
923
923
|
send$1(ipc, method, ...params);
|
|
924
924
|
},
|
|
925
925
|
invoke(method, ...params) {
|
|
926
|
-
return invoke
|
|
926
|
+
return invoke(ipc, method, ...params);
|
|
927
927
|
},
|
|
928
928
|
invokeAndTransfer(method, ...params) {
|
|
929
929
|
return invokeAndTransfer(ipc, method, ...params);
|
|
@@ -1113,9 +1113,13 @@ const RendererWorker$1 = 1;
|
|
|
1113
1113
|
const {
|
|
1114
1114
|
invoke: invoke$c,
|
|
1115
1115
|
set: set$c} = create$1(EditorWorker$1);
|
|
1116
|
+
const getProblems$2 = async () => {
|
|
1117
|
+
// @ts-ignore
|
|
1118
|
+
return invoke$c('Editor.getProblems');
|
|
1119
|
+
};
|
|
1116
1120
|
const EditorWorker = {
|
|
1117
1121
|
__proto__: null,
|
|
1118
|
-
|
|
1122
|
+
getProblems: getProblems$2,
|
|
1119
1123
|
set: set$c};
|
|
1120
1124
|
const {
|
|
1121
1125
|
invoke: invoke$3,
|
|
@@ -1494,8 +1498,9 @@ const createEditorWorkerRpc = async () => {
|
|
|
1494
1498
|
};
|
|
1495
1499
|
|
|
1496
1500
|
const {
|
|
1497
|
-
|
|
1498
|
-
|
|
1501
|
+
set,
|
|
1502
|
+
getProblems: getProblems$1
|
|
1503
|
+
} = EditorWorker;
|
|
1499
1504
|
|
|
1500
1505
|
const initialize = async () => {
|
|
1501
1506
|
const rpc = await createEditorWorkerRpc();
|
|
@@ -1597,8 +1602,7 @@ const toProblems = (diagnostics, workspaceUri = '') => {
|
|
|
1597
1602
|
|
|
1598
1603
|
const getProblems = async workspaceUri => {
|
|
1599
1604
|
try {
|
|
1600
|
-
|
|
1601
|
-
const diagnostics = await invoke('Editor.getProblems');
|
|
1605
|
+
const diagnostics = await getProblems$1();
|
|
1602
1606
|
// @ts-ignore
|
|
1603
1607
|
const problems = toProblems(diagnostics, workspaceUri);
|
|
1604
1608
|
return {
|
|
@@ -1788,7 +1792,7 @@ const HandlePointerDown = 'handlePointerDown';
|
|
|
1788
1792
|
const getIconVirtualDom = (icon, type = VirtualDomElements.Div) => {
|
|
1789
1793
|
return {
|
|
1790
1794
|
type,
|
|
1791
|
-
className:
|
|
1795
|
+
className: mergeClassNames('MaskIcon', `MaskIcon${icon}`),
|
|
1792
1796
|
role: AriaRoles.None,
|
|
1793
1797
|
childCount: 0
|
|
1794
1798
|
};
|
|
@@ -1878,7 +1882,7 @@ const getNoResultsWithFilterVirtualDom = () => {
|
|
|
1878
1882
|
const getBadgeVirtualDom = (className, count) => {
|
|
1879
1883
|
return [{
|
|
1880
1884
|
type: VirtualDomElements.Div,
|
|
1881
|
-
className:
|
|
1885
|
+
className: mergeClassNames('Badge', className) + (''),
|
|
1882
1886
|
childCount: 1
|
|
1883
1887
|
}, text(`${count}`)];
|
|
1884
1888
|
};
|
|
@@ -1886,14 +1890,14 @@ const getBadgeVirtualDom = (className, count) => {
|
|
|
1886
1890
|
const getChevronDownVirtualDom = (extraClassName = '') => {
|
|
1887
1891
|
return {
|
|
1888
1892
|
type: VirtualDomElements.Div,
|
|
1889
|
-
className:
|
|
1893
|
+
className: mergeClassNames(Chevron, 'MaskIconChevronDown', extraClassName) + (extraClassName === '' ? ' ' : ''),
|
|
1890
1894
|
childCount: 0
|
|
1891
1895
|
};
|
|
1892
1896
|
};
|
|
1893
1897
|
const getChevronRightVirtualDom = (extraClassName = '') => {
|
|
1894
1898
|
return {
|
|
1895
1899
|
type: VirtualDomElements.Div,
|
|
1896
|
-
className:
|
|
1900
|
+
className: mergeClassNames(Chevron, 'MaskIconChevronRight', extraClassName) + (extraClassName === '' ? ' ' : ''),
|
|
1897
1901
|
childCount: 0
|
|
1898
1902
|
};
|
|
1899
1903
|
};
|
|
@@ -1911,17 +1915,16 @@ const getFileIconVirtualDom = icon => {
|
|
|
1911
1915
|
const Warning = 'warning';
|
|
1912
1916
|
|
|
1913
1917
|
const getProblemsIconVirtualDom = type => {
|
|
1914
|
-
// TODO use mergeclassnames
|
|
1915
1918
|
if (type === Warning) {
|
|
1916
1919
|
return {
|
|
1917
1920
|
type: VirtualDomElements.Div,
|
|
1918
|
-
className:
|
|
1921
|
+
className: mergeClassNames(ProblemsIcon, ProblemsWarningIcon),
|
|
1919
1922
|
childCount: 0
|
|
1920
1923
|
};
|
|
1921
1924
|
}
|
|
1922
1925
|
return {
|
|
1923
1926
|
type: VirtualDomElements.Div,
|
|
1924
|
-
className:
|
|
1927
|
+
className: mergeClassNames(ProblemsIcon, ProblemsErrorIcon),
|
|
1925
1928
|
childCount: 0
|
|
1926
1929
|
};
|
|
1927
1930
|
};
|