@lvce-editor/source-control-worker 2.11.0 → 2.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/README.md +0 -4
- package/dist/sourceControlWorkerMain.js +13 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1931,20 +1931,22 @@ const refresh = async state => {
|
|
|
1931
1931
|
const numberOfVisible = getNumberOfVisibleItems(listHeight, itemHeight);
|
|
1932
1932
|
const minLineY = 0;
|
|
1933
1933
|
const maxLineY = Math.min(numberOfVisible, total);
|
|
1934
|
-
const
|
|
1934
|
+
const newFileIconCache = await getFileIcons(displayItems, fileIconCache);
|
|
1935
|
+
const visibleItems = getVisibleSourceControlItems(displayItems, minLineY, maxLineY, actionsCache, newFileIconCache);
|
|
1935
1936
|
const finalDeltaY = getFinalDeltaY(listHeight, itemHeight, total);
|
|
1936
1937
|
return {
|
|
1937
1938
|
...state,
|
|
1939
|
+
actionsCache,
|
|
1938
1940
|
allGroups,
|
|
1941
|
+
enabledProviderIds,
|
|
1942
|
+
fileIconCache: newFileIconCache,
|
|
1943
|
+
finalDeltaY,
|
|
1939
1944
|
gitRoot,
|
|
1940
1945
|
items: displayItems,
|
|
1941
|
-
visibleItems,
|
|
1942
|
-
enabledProviderIds,
|
|
1943
|
-
splitButtonEnabled,
|
|
1944
1946
|
maxLineY,
|
|
1945
1947
|
scrollBarHeight,
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
+
splitButtonEnabled,
|
|
1949
|
+
visibleItems
|
|
1948
1950
|
};
|
|
1949
1951
|
};
|
|
1950
1952
|
|
|
@@ -2188,6 +2190,10 @@ const handleWheel = async (state, deltaMode, deltaY) => {
|
|
|
2188
2190
|
return setDeltaY(state, state.deltaY + deltaY);
|
|
2189
2191
|
};
|
|
2190
2192
|
|
|
2193
|
+
const handleWorkspaceRefresh = async state => {
|
|
2194
|
+
return refresh(state);
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2191
2197
|
const sendMessagePortToExtensionHostWorker = async port => {
|
|
2192
2198
|
await sendMessagePortToExtensionHostWorker$1(port, SourceControlWorker);
|
|
2193
2199
|
};
|
|
@@ -2717,6 +2723,7 @@ const commandMap = {
|
|
|
2717
2723
|
'SourceControl.create2': create2,
|
|
2718
2724
|
'SourceControl.diff2': diff2,
|
|
2719
2725
|
'SourceControl.getCommandIds': getCommandIds,
|
|
2726
|
+
'SourceControl.handleWorkspaceRefresh': wrapCommand(handleWorkspaceRefresh),
|
|
2720
2727
|
'SourceControl.getMenuIds': getMenuIds,
|
|
2721
2728
|
'SourceControl.getEnabledProviderIds': getEnabledProviderIds,
|
|
2722
2729
|
'SourceControl.getFileDecorations': getFileDecorations,
|