@lvce-editor/problems-view 1.26.7 → 1.27.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.
|
@@ -1683,6 +1683,9 @@ const writeClipBoardText$1 = async text => {
|
|
|
1683
1683
|
const getActiveEditorId$1 = () => {
|
|
1684
1684
|
return invoke('GetActiveEditor.getActiveEditorId');
|
|
1685
1685
|
};
|
|
1686
|
+
const getWorkspacePath$1 = () => {
|
|
1687
|
+
return invoke('Workspace.getPath');
|
|
1688
|
+
};
|
|
1686
1689
|
|
|
1687
1690
|
const getActiveEditorId = () => {
|
|
1688
1691
|
return getActiveEditorId$1();
|
|
@@ -2674,12 +2677,15 @@ const getSavedViewMode = savedState => {
|
|
|
2674
2677
|
return List;
|
|
2675
2678
|
};
|
|
2676
2679
|
|
|
2680
|
+
const getWorkspacePath = () => {
|
|
2681
|
+
return getWorkspacePath$1();
|
|
2682
|
+
};
|
|
2683
|
+
|
|
2677
2684
|
const loadContent = async (state, savedState) => {
|
|
2678
2685
|
const {
|
|
2679
|
-
fileIconCache: oldFileIconCache
|
|
2680
|
-
workspaceUri
|
|
2686
|
+
fileIconCache: oldFileIconCache
|
|
2681
2687
|
} = state;
|
|
2682
|
-
const activeUri = await getActiveUri();
|
|
2688
|
+
const [activeUri, workspaceUri] = await Promise.all([getActiveUri(), getWorkspacePath()]);
|
|
2683
2689
|
const {
|
|
2684
2690
|
error,
|
|
2685
2691
|
problems
|
|
@@ -2690,7 +2696,8 @@ const loadContent = async (state, savedState) => {
|
|
|
2690
2696
|
activeUri,
|
|
2691
2697
|
filteredProblems: [],
|
|
2692
2698
|
message: error,
|
|
2693
|
-
problems: []
|
|
2699
|
+
problems: [],
|
|
2700
|
+
workspaceUri
|
|
2694
2701
|
};
|
|
2695
2702
|
}
|
|
2696
2703
|
const message = getMessage(problems.length);
|
|
@@ -2709,7 +2716,8 @@ const loadContent = async (state, savedState) => {
|
|
|
2709
2716
|
listItems: [],
|
|
2710
2717
|
message,
|
|
2711
2718
|
problems,
|
|
2712
|
-
viewMode
|
|
2719
|
+
viewMode,
|
|
2720
|
+
workspaceUri
|
|
2713
2721
|
};
|
|
2714
2722
|
};
|
|
2715
2723
|
|