@lvce-editor/text-search-worker 6.7.0 → 6.8.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/textSearchWorkerMain.js +2 -10
- package/package.json +1 -1
|
@@ -4808,10 +4808,7 @@ const getUsePullBasedSearch = async () => {
|
|
|
4808
4808
|
};
|
|
4809
4809
|
|
|
4810
4810
|
const hasProperty = (object, key) => {
|
|
4811
|
-
|
|
4812
|
-
return false;
|
|
4813
|
-
}
|
|
4814
|
-
return true;
|
|
4811
|
+
return !!object && typeof object === 'object' && key in object;
|
|
4815
4812
|
};
|
|
4816
4813
|
|
|
4817
4814
|
const getSavedFocus = savedState => {
|
|
@@ -6174,12 +6171,7 @@ const replaceAllAndPrompt = async (workspacePath, items, replacement, matchCount
|
|
|
6174
6171
|
confirmMessage: confirmAccept,
|
|
6175
6172
|
title: confirmTitle
|
|
6176
6173
|
});
|
|
6177
|
-
|
|
6178
|
-
return false;
|
|
6179
|
-
}
|
|
6180
|
-
// TODO
|
|
6181
|
-
// await TextSearchReplaceAll.replaceAll(workspacePath, items, replacement)
|
|
6182
|
-
return true;
|
|
6174
|
+
return shouldReplace;
|
|
6183
6175
|
};
|
|
6184
6176
|
|
|
6185
6177
|
const replaceAllInFile = async state => {
|