@lvce-editor/problems-view 1.26.0 → 1.26.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.
- package/dist/problemsViewWorkerMain.js +34 -24
- package/package.json +1 -1
|
@@ -1616,7 +1616,7 @@ const Checked = 2;
|
|
|
1616
1616
|
const Unchecked = 3;
|
|
1617
1617
|
|
|
1618
1618
|
const EditorWorker$1 = 99;
|
|
1619
|
-
const RendererWorker
|
|
1619
|
+
const RendererWorker = 1;
|
|
1620
1620
|
|
|
1621
1621
|
const SetCss = 'Viewlet.setCss';
|
|
1622
1622
|
|
|
@@ -1645,7 +1645,7 @@ const {
|
|
|
1645
1645
|
invoke,
|
|
1646
1646
|
invokeAndTransfer,
|
|
1647
1647
|
set: set$2
|
|
1648
|
-
} = create$1(RendererWorker
|
|
1648
|
+
} = create$1(RendererWorker);
|
|
1649
1649
|
const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
1650
1650
|
number(uid);
|
|
1651
1651
|
number(menuId);
|
|
@@ -1664,23 +1664,18 @@ const getActiveEditorId$1 = () => {
|
|
|
1664
1664
|
return invoke('GetActiveEditor.getActiveEditorId');
|
|
1665
1665
|
};
|
|
1666
1666
|
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1667
|
+
const getActiveEditorId = () => {
|
|
1668
|
+
return getActiveEditorId$1();
|
|
1669
|
+
};
|
|
1670
|
+
const sendMessagePortToEditorWorker = (port, rpcId) => {
|
|
1671
|
+
return sendMessagePortToEditorWorker$1(port, rpcId);
|
|
1672
|
+
};
|
|
1673
|
+
const set$1 = rpc => {
|
|
1674
|
+
set$2(rpc);
|
|
1675
|
+
};
|
|
1676
|
+
const writeClipBoardText = text => {
|
|
1677
|
+
return writeClipBoardText$1(text);
|
|
1676
1678
|
};
|
|
1677
|
-
|
|
1678
|
-
const {
|
|
1679
|
-
getActiveEditorId,
|
|
1680
|
-
sendMessagePortToEditorWorker,
|
|
1681
|
-
set: set$1,
|
|
1682
|
-
writeClipBoardText
|
|
1683
|
-
} = RendererWorker;
|
|
1684
1679
|
|
|
1685
1680
|
const writeText = async text => {
|
|
1686
1681
|
await writeClipBoardText(text);
|
|
@@ -2251,14 +2246,10 @@ const getProblems = async (workspaceUri, activeUri) => {
|
|
|
2251
2246
|
}
|
|
2252
2247
|
};
|
|
2253
2248
|
|
|
2254
|
-
const
|
|
2249
|
+
const refreshProblems = async (state, activeUri) => {
|
|
2255
2250
|
const {
|
|
2256
|
-
activeUri: oldActiveUri,
|
|
2257
2251
|
workspaceUri
|
|
2258
2252
|
} = state;
|
|
2259
|
-
if (activeUri === oldActiveUri) {
|
|
2260
|
-
return state;
|
|
2261
|
-
}
|
|
2262
2253
|
const {
|
|
2263
2254
|
error,
|
|
2264
2255
|
problems
|
|
@@ -2273,6 +2264,24 @@ const handleActiveEditorChange = async (state, activeUri) => {
|
|
|
2273
2264
|
problems
|
|
2274
2265
|
};
|
|
2275
2266
|
};
|
|
2267
|
+
const handleActiveEditorChange = async (state, activeUri) => {
|
|
2268
|
+
const {
|
|
2269
|
+
activeUri: oldActiveUri
|
|
2270
|
+
} = state;
|
|
2271
|
+
if (activeUri === oldActiveUri) {
|
|
2272
|
+
return state;
|
|
2273
|
+
}
|
|
2274
|
+
return refreshProblems(state, activeUri);
|
|
2275
|
+
};
|
|
2276
|
+
const handleDiagnosticsChange = async (state, uri) => {
|
|
2277
|
+
const {
|
|
2278
|
+
activeUri
|
|
2279
|
+
} = state;
|
|
2280
|
+
if (uri !== activeUri) {
|
|
2281
|
+
return state;
|
|
2282
|
+
}
|
|
2283
|
+
return refreshProblems(state, uri);
|
|
2284
|
+
};
|
|
2276
2285
|
|
|
2277
2286
|
const getArrowLeftNewFocusedIndex = (problems, collapsedUris, focusedIndex) => {
|
|
2278
2287
|
for (let i = focusedIndex; i >= 0; i--) {
|
|
@@ -2998,7 +3007,7 @@ const getProblemVirtualDom = problem => {
|
|
|
2998
3007
|
type: Div
|
|
2999
3008
|
}, listItemType === Collapsed ? getChevronRightVirtualDom() : getChevronDownVirtualDom(), getFileIconVirtualDom(icon), labelNode, text(fileName), labelDetailNode, text(relativePath), ...getBadgeVirtualDom(ProblemBadge, problem.count)];
|
|
3000
3009
|
}
|
|
3001
|
-
const lineColumn = atLineColumn(rowIndex, columnIndex);
|
|
3010
|
+
const lineColumn = atLineColumn(rowIndex + 1, columnIndex + 1);
|
|
3002
3011
|
const label = {
|
|
3003
3012
|
childCount: 1,
|
|
3004
3013
|
className: ProblemLabel,
|
|
@@ -3421,6 +3430,7 @@ const commandMap = {
|
|
|
3421
3430
|
'Problems.handleClickButton': wrapCommand(handleClickButton),
|
|
3422
3431
|
'Problems.handleClickMoreFilters': wrapCommand(handleClickMoreFilters),
|
|
3423
3432
|
'Problems.handleContextMenu': wrapCommand(handleContextMenu),
|
|
3433
|
+
'Problems.handleDiagnosticsChange': wrapCommand(handleDiagnosticsChange),
|
|
3424
3434
|
'Problems.handleFilterInput': wrapCommand(handleFilterInput),
|
|
3425
3435
|
'Problems.handleIconThemeChange': wrapCommand(handleIconThemeChange),
|
|
3426
3436
|
'Problems.handleScrollBarCaptureLost': wrapCommand(handleScrollBarCaptureLost),
|