@lvce-editor/text-search-view 1.12.1 → 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.
@@ -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);
@@ -5893,6 +5894,12 @@ const getCss = (top, uniqueIndents, uniqueIndentRights, scrollBarHeight, scrollB
5893
5894
  vertical-align: baseline;
5894
5895
  }
5895
5896
 
5897
+ .SearchWorkspaceMessage {
5898
+ margin-top: -16px;
5899
+ overflow-wrap: break-word;
5900
+ padding-right: 22px;
5901
+ }
5902
+
5896
5903
  .SearchWorkspaceMessageAction:hover {
5897
5904
  text-decoration: underline;
5898
5905
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-view",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Text Search View",
5
5
  "keywords": [
6
6
  "text-search"