@lvce-editor/explorer-view 6.14.0 → 6.15.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.
|
@@ -1668,9 +1668,10 @@ const getChildDirentsRaw = async uri => {
|
|
|
1668
1668
|
|
|
1669
1669
|
const RE_CHARACTERS = /^[a-zA-Z.-]+$/;
|
|
1670
1670
|
const RE_LEADING_DIGITS = /^\d+/;
|
|
1671
|
+
const RE_LEADING_ZEROES = /^0+/;
|
|
1671
1672
|
const compareLeadingDigits = (a, b) => {
|
|
1672
|
-
const normalizedA = a.replace(
|
|
1673
|
-
const normalizedB = b.replace(
|
|
1673
|
+
const normalizedA = a.replace(RE_LEADING_ZEROES, '') || '0';
|
|
1674
|
+
const normalizedB = b.replace(RE_LEADING_ZEROES, '') || '0';
|
|
1674
1675
|
if (normalizedA.length !== normalizedB.length) {
|
|
1675
1676
|
return normalizedA.length - normalizedB.length;
|
|
1676
1677
|
}
|
|
@@ -5286,8 +5287,8 @@ const handleKeyDown = (state, key) => {
|
|
|
5286
5287
|
if (typeAheadTimeout.value) {
|
|
5287
5288
|
clearTimeout(typeAheadTimeout.value);
|
|
5288
5289
|
}
|
|
5289
|
-
typeAheadTimeout.value = setTimeout(
|
|
5290
|
-
|
|
5290
|
+
typeAheadTimeout.value = setTimeout(() => {
|
|
5291
|
+
void invoke$2('Explorer.cancelTypeAhead');
|
|
5291
5292
|
}, focusWordTimeout);
|
|
5292
5293
|
if (matchingIndex === -1) {
|
|
5293
5294
|
return {
|