@lvce-editor/text-search-view 1.2.0 → 1.3.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/textSearchViewMain.js +34 -1
- package/package.json +1 -1
|
@@ -3642,6 +3642,7 @@ const handleUpdateFull = async (state, update) => {
|
|
|
3642
3642
|
root,
|
|
3643
3643
|
scheme,
|
|
3644
3644
|
threads,
|
|
3645
|
+
useIgnoreFiles: hasUseIgnoreFiles(flags),
|
|
3645
3646
|
usePullBasedSearch: shouldUsePullBasedSearch,
|
|
3646
3647
|
useRegularExpression: Boolean(flags & UseRegularExpression$2)
|
|
3647
3648
|
}, assetDir, platform, searchId, uid);
|
|
@@ -3783,6 +3784,7 @@ const handleUpdateIncremental = async (state, update) => {
|
|
|
3783
3784
|
root,
|
|
3784
3785
|
scheme,
|
|
3785
3786
|
threads,
|
|
3787
|
+
useIgnoreFiles: hasUseIgnoreFiles(flags),
|
|
3786
3788
|
usePullBasedSearch: usePullBasedSearch,
|
|
3787
3789
|
useRegularExpression: Boolean(flags & UseRegularExpression$2)
|
|
3788
3790
|
}, assetDir, platform, searchId, uid);
|
|
@@ -3840,6 +3842,7 @@ const handleUpdatePullBased = async (state, update) => {
|
|
|
3840
3842
|
root,
|
|
3841
3843
|
scheme,
|
|
3842
3844
|
threads,
|
|
3845
|
+
useIgnoreFiles: hasUseIgnoreFiles(flags),
|
|
3843
3846
|
usePullBasedSearch: shouldUsePullBasedSearch,
|
|
3844
3847
|
useRegularExpression: Boolean(flags & UseRegularExpression$2)
|
|
3845
3848
|
}, assetDir, platform, searchId, uid);
|
|
@@ -5185,7 +5188,7 @@ const handleScrollBarMove = (state, eventY) => {
|
|
|
5185
5188
|
const newDeltaY = newPercent * finalDeltaY;
|
|
5186
5189
|
return setDeltaY(state, newDeltaY);
|
|
5187
5190
|
};
|
|
5188
|
-
const handleWheel = (state, deltaMode, deltaY) => {
|
|
5191
|
+
const handleWheel$1 = (state, deltaMode, deltaY) => {
|
|
5189
5192
|
number(deltaMode);
|
|
5190
5193
|
number(deltaY);
|
|
5191
5194
|
return setDeltaY(state, state.deltaY + deltaY);
|
|
@@ -5335,6 +5338,33 @@ const handleListPointerDown = async (state, button, name) => {
|
|
|
5335
5338
|
};
|
|
5336
5339
|
};
|
|
5337
5340
|
|
|
5341
|
+
const handleWheel = async (state, deltaMode, deltaY) => {
|
|
5342
|
+
const {
|
|
5343
|
+
maxLineY: oldMaxLineY,
|
|
5344
|
+
minLineY: oldMinLineY
|
|
5345
|
+
} = state;
|
|
5346
|
+
const newState = handleWheel$1(state, deltaMode, deltaY);
|
|
5347
|
+
if (newState.minLineY === oldMinLineY && newState.maxLineY === oldMaxLineY) {
|
|
5348
|
+
return newState;
|
|
5349
|
+
}
|
|
5350
|
+
const {
|
|
5351
|
+
fileIconCache,
|
|
5352
|
+
listItems,
|
|
5353
|
+
maxLineY,
|
|
5354
|
+
minLineY
|
|
5355
|
+
} = newState;
|
|
5356
|
+
const visibleItems = listItems.slice(minLineY, maxLineY);
|
|
5357
|
+
const {
|
|
5358
|
+
icons,
|
|
5359
|
+
newFileIconCache
|
|
5360
|
+
} = await getFileIcons(visibleItems, fileIconCache);
|
|
5361
|
+
return {
|
|
5362
|
+
...newState,
|
|
5363
|
+
fileIconCache: newFileIconCache,
|
|
5364
|
+
icons
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5338
5368
|
const getUsePullBasedSearch = async () => {
|
|
5339
5369
|
try {
|
|
5340
5370
|
return Boolean(await getPreference('Search.usePullBasedSearch'));
|
|
@@ -5424,6 +5454,7 @@ const restoreState = savedState => {
|
|
|
5424
5454
|
|
|
5425
5455
|
const loadContent = async (state, savedState) => {
|
|
5426
5456
|
const {
|
|
5457
|
+
defaultExcludes: currentDefaultExcludes,
|
|
5427
5458
|
limitHitWarning,
|
|
5428
5459
|
width
|
|
5429
5460
|
} = state;
|
|
@@ -5436,11 +5467,13 @@ const loadContent = async (state, savedState) => {
|
|
|
5436
5467
|
savedValue,
|
|
5437
5468
|
threads
|
|
5438
5469
|
} = restoreState(savedState);
|
|
5470
|
+
const defaultExcludes = await getSearchExcludes(currentDefaultExcludes);
|
|
5439
5471
|
const usePullBasedSearch = await getUsePullBasedSearch();
|
|
5440
5472
|
const warningHeight = await getSearchWarningMessageHeight(limitHitWarning, width);
|
|
5441
5473
|
const headerHeight = getTopHeight(flags) + warningHeight;
|
|
5442
5474
|
const update = {
|
|
5443
5475
|
collapsedPaths: savedCollapsedPaths,
|
|
5476
|
+
defaultExcludes,
|
|
5444
5477
|
excludeValue,
|
|
5445
5478
|
flags,
|
|
5446
5479
|
focus: 0,
|