@lvce-editor/text-search-view 1.12.0 → 1.12.2
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 +28 -6
- package/package.json +1 -1
|
@@ -2563,7 +2563,7 @@ const create = (uid, x, y, width, height, workspacePath, assetDir, itemHeight, v
|
|
|
2563
2563
|
};
|
|
2564
2564
|
|
|
2565
2565
|
const isEqual$7 = (oldState, newState) => {
|
|
2566
|
-
return oldState.deltaY === newState.deltaY && oldState.finalDeltaY === newState.finalDeltaY && oldState.height === newState.height && oldState.headerHeight === newState.headerHeight && oldState.itemHeight === newState.itemHeight && oldState.items === newState.items;
|
|
2566
|
+
return oldState.deltaY === newState.deltaY && oldState.finalDeltaY === newState.finalDeltaY && oldState.height === newState.height && oldState.headerHeight === newState.headerHeight && oldState.itemHeight === newState.itemHeight && oldState.items === newState.items && oldState.loaded === newState.loaded;
|
|
2567
2567
|
};
|
|
2568
2568
|
|
|
2569
2569
|
const isEqual$6 = (oldState, newState) => {
|
|
@@ -2803,7 +2803,7 @@ const MatchCase$1 = 'Match Case';
|
|
|
2803
2803
|
const Remove$1 = 'Remove';
|
|
2804
2804
|
const MatchWholeWord$1 = 'Match Whole Word';
|
|
2805
2805
|
const NoResults = 'No results found';
|
|
2806
|
-
const NoWorkspaceFolder = 'You have not opened or specified a folder.';
|
|
2806
|
+
const NoWorkspaceFolder = 'You have not opened or specified a folder. Only open files are currently searched';
|
|
2807
2807
|
const Oneresult = '1 result in 1 file';
|
|
2808
2808
|
const OpenFolder = 'Open Folder';
|
|
2809
2809
|
const OpenNewSearchEditor = 'Open New Search Editor';
|
|
@@ -3983,9 +3983,10 @@ const handleUpdate = async (state, update) => {
|
|
|
3983
3983
|
try {
|
|
3984
3984
|
const {
|
|
3985
3985
|
flags,
|
|
3986
|
-
value
|
|
3986
|
+
value,
|
|
3987
|
+
workspacePath
|
|
3987
3988
|
} = partialNewState;
|
|
3988
|
-
if (isEmptyString(value)) {
|
|
3989
|
+
if (isEmptyString(value) || isEmptyString(workspacePath)) {
|
|
3989
3990
|
return handleUpdateEmpty(state, update);
|
|
3990
3991
|
}
|
|
3991
3992
|
const searchInputErrorMessage = validateSearchInput(value, flags);
|
|
@@ -5879,14 +5880,35 @@ const getCss = (top, uniqueIndents, uniqueIndentRights, scrollBarHeight, scrollB
|
|
|
5879
5880
|
}
|
|
5880
5881
|
|
|
5881
5882
|
.SearchWorkspaceMessageAction {
|
|
5882
|
-
|
|
5883
|
-
|
|
5883
|
+
appearance: none;
|
|
5884
|
+
background-color: transparent;
|
|
5885
|
+
border: 0;
|
|
5884
5886
|
color: var(--LinkForeground, #3794ff);
|
|
5885
5887
|
cursor: pointer;
|
|
5888
|
+
display: inline;
|
|
5886
5889
|
font: inherit;
|
|
5890
|
+
line-height: inherit;
|
|
5891
|
+
margin: 0;
|
|
5887
5892
|
padding: 0;
|
|
5893
|
+
text-decoration: none;
|
|
5894
|
+
vertical-align: baseline;
|
|
5895
|
+
}
|
|
5896
|
+
|
|
5897
|
+
.SearchWorkspaceMessage {
|
|
5898
|
+
margin-top: -16px;
|
|
5899
|
+
overflow-wrap: break-word;
|
|
5900
|
+
padding-right: 22px;
|
|
5901
|
+
}
|
|
5902
|
+
|
|
5903
|
+
.SearchWorkspaceMessageAction:hover {
|
|
5888
5904
|
text-decoration: underline;
|
|
5889
5905
|
}
|
|
5906
|
+
|
|
5907
|
+
.SearchWorkspaceMessageAction:focus-visible {
|
|
5908
|
+
border-radius: 1px;
|
|
5909
|
+
outline: 1px solid var(--FocusBorder, currentColor);
|
|
5910
|
+
outline-offset: 1px;
|
|
5911
|
+
}
|
|
5890
5912
|
`, ...uniqueIndents.map(getIndentRule), ...uniqueIndentRights.map(getIndentRightRule), getTreeItemsTopRule(treeItemsTop), getScrollBarThumbTopRule(scrollBarY)];
|
|
5891
5913
|
return rules.join('\n');
|
|
5892
5914
|
};
|