@theia/search-in-workspace 1.65.0-next.6 → 1.65.1

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.
Files changed (50) hide show
  1. package/lib/browser/components/search-in-workspace-textarea.d.ts.map +1 -1
  2. package/lib/browser/components/search-in-workspace-textarea.js +1 -2
  3. package/lib/browser/components/search-in-workspace-textarea.js.map +1 -1
  4. package/lib/browser/search-in-workspace-frontend-module.d.ts.map +1 -1
  5. package/lib/browser/search-in-workspace-frontend-module.js +3 -2
  6. package/lib/browser/search-in-workspace-frontend-module.js.map +1 -1
  7. package/lib/browser/search-in-workspace-result-tree-widget.d.ts +3 -2
  8. package/lib/browser/search-in-workspace-result-tree-widget.d.ts.map +1 -1
  9. package/lib/browser/search-in-workspace-result-tree-widget.js +18 -15
  10. package/lib/browser/search-in-workspace-result-tree-widget.js.map +1 -1
  11. package/lib/browser/search-in-workspace-service.d.ts +5 -5
  12. package/lib/browser/search-in-workspace-service.d.ts.map +1 -1
  13. package/lib/browser/search-in-workspace-service.js +4 -4
  14. package/lib/browser/search-in-workspace-service.js.map +1 -1
  15. package/lib/browser/search-in-workspace-widget.d.ts +1 -1
  16. package/lib/browser/search-in-workspace-widget.d.ts.map +1 -1
  17. package/lib/browser/search-in-workspace-widget.js +2 -4
  18. package/lib/browser/search-in-workspace-widget.js.map +1 -1
  19. package/lib/browser-only/browser-only-search-in-workspace-service.d.ts +5 -0
  20. package/lib/browser-only/browser-only-search-in-workspace-service.d.ts.map +1 -0
  21. package/lib/browser-only/browser-only-search-in-workspace-service.js +40 -0
  22. package/lib/browser-only/browser-only-search-in-workspace-service.js.map +1 -0
  23. package/lib/browser-only/browser-search-in-workspace-server.d.ts +80 -0
  24. package/lib/browser-only/browser-search-in-workspace-server.d.ts.map +1 -0
  25. package/lib/browser-only/browser-search-in-workspace-server.js +378 -0
  26. package/lib/browser-only/browser-search-in-workspace-server.js.map +1 -0
  27. package/lib/browser-only/search-in-workspace-frontend-only-module.d.ts +4 -0
  28. package/lib/browser-only/search-in-workspace-frontend-only-module.d.ts.map +1 -0
  29. package/lib/browser-only/search-in-workspace-frontend-only-module.js +37 -0
  30. package/lib/browser-only/search-in-workspace-frontend-only-module.js.map +1 -0
  31. package/lib/{browser → common}/search-in-workspace-preferences.d.ts +2 -1
  32. package/lib/common/search-in-workspace-preferences.d.ts.map +1 -0
  33. package/lib/{browser → common}/search-in-workspace-preferences.js +4 -3
  34. package/lib/common/search-in-workspace-preferences.js.map +1 -0
  35. package/lib/node/search-in-workspace-backend-module.d.ts.map +1 -1
  36. package/lib/node/search-in-workspace-backend-module.js +2 -0
  37. package/lib/node/search-in-workspace-backend-module.js.map +1 -1
  38. package/package.json +13 -10
  39. package/src/browser/components/search-in-workspace-textarea.tsx +1 -2
  40. package/src/browser/search-in-workspace-frontend-module.ts +5 -4
  41. package/src/browser/search-in-workspace-result-tree-widget.tsx +30 -17
  42. package/src/browser/search-in-workspace-service.ts +8 -7
  43. package/src/browser/search-in-workspace-widget.tsx +4 -3
  44. package/src/browser-only/browser-only-search-in-workspace-service.ts +30 -0
  45. package/src/browser-only/browser-search-in-workspace-server.ts +471 -0
  46. package/src/browser-only/search-in-workspace-frontend-only-module.ts +35 -0
  47. package/src/{browser → common}/search-in-workspace-preferences.ts +3 -2
  48. package/src/node/search-in-workspace-backend-module.ts +2 -0
  49. package/lib/browser/search-in-workspace-preferences.d.ts.map +0 -1
  50. package/lib/browser/search-in-workspace-preferences.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-search-in-workspace-server.js","sourceRoot":"","sources":["../../src/browser-only/browser-search-in-workspace-server.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,iDAAiD;AACjD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,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AAC"}
@@ -0,0 +1,4 @@
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
+ //# sourceMappingURL=search-in-workspace-frontend-only-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-in-workspace-frontend-only-module.d.ts","sourceRoot":"","sources":["../../src/browser-only/search-in-workspace-frontend-only-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAM/D,wBAYG"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2025 Maksim Kachurin and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const inversify_1 = require("@theia/core/shared/inversify");
19
+ const search_in_workspace_interface_1 = require("../common/search-in-workspace-interface");
20
+ const browser_search_in_workspace_server_1 = require("./browser-search-in-workspace-server");
21
+ const search_in_workspace_service_1 = require("../browser/search-in-workspace-service");
22
+ const browser_only_search_in_workspace_service_1 = require("./browser-only-search-in-workspace-service");
23
+ exports.default = new inversify_1.ContainerModule((bind, _unbind, isBound, rebind) => {
24
+ if (isBound(search_in_workspace_interface_1.SearchInWorkspaceServer)) {
25
+ rebind(search_in_workspace_interface_1.SearchInWorkspaceServer).to(browser_search_in_workspace_server_1.BrowserSearchInWorkspaceServer).inSingletonScope();
26
+ }
27
+ else {
28
+ bind(search_in_workspace_interface_1.SearchInWorkspaceServer).to(browser_search_in_workspace_server_1.BrowserSearchInWorkspaceServer).inSingletonScope();
29
+ }
30
+ if (isBound(search_in_workspace_service_1.SearchInWorkspaceService)) {
31
+ rebind(search_in_workspace_service_1.SearchInWorkspaceService).to(browser_only_search_in_workspace_service_1.BrowserOnlySearchInWorkspaceService).inSingletonScope();
32
+ }
33
+ else {
34
+ bind(search_in_workspace_service_1.SearchInWorkspaceService).to(browser_only_search_in_workspace_service_1.BrowserOnlySearchInWorkspaceService).inSingletonScope();
35
+ }
36
+ });
37
+ //# sourceMappingURL=search-in-workspace-frontend-only-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-in-workspace-frontend-only-module.js","sourceRoot":"","sources":["../../src/browser-only/search-in-workspace-frontend-only-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,iDAAiD;AACjD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,2FAAkF;AAClF,6FAAsF;AACtF,wFAAkF;AAClF,yGAAiG;AAEjG,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAClE,IAAI,OAAO,CAAC,uDAAuB,CAAC,EAAE,CAAC;QACnC,MAAM,CAAC,uDAAuB,CAAC,CAAC,EAAE,CAAC,mEAA8B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC1F,CAAC;SAAM,CAAC;QACJ,IAAI,CAAC,uDAAuB,CAAC,CAAC,EAAE,CAAC,mEAA8B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACxF,CAAC;IAED,IAAI,OAAO,CAAC,sDAAwB,CAAC,EAAE,CAAC;QACpC,MAAM,CAAC,sDAAwB,CAAC,CAAC,EAAE,CAAC,8EAAmC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAChG,CAAC;SAAM,CAAC;QACJ,IAAI,CAAC,sDAAwB,CAAC,CAAC,EAAE,CAAC,8EAAmC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC9F,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
- import { PreferenceSchema, PreferenceProxy, PreferenceService } from '@theia/core/lib/browser/preferences';
1
+ import { PreferenceProxy, PreferenceService } from '@theia/core/lib/common/preferences';
2
2
  import { interfaces } from '@theia/core/shared/inversify';
3
+ import { PreferenceSchema } from '@theia/core/lib/common/preferences/preference-schema';
3
4
  export declare const searchInWorkspacePreferencesSchema: PreferenceSchema;
4
5
  export declare class SearchInWorkspaceConfiguration {
5
6
  'search.lineNumbers': boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-in-workspace-preferences.d.ts","sourceRoot":"","sources":["../../src/common/search-in-workspace-preferences.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAmB,iBAAiB,EAAyB,MAAM,oCAAoC,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAA0B,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAEhH,eAAO,MAAM,kCAAkC,EAAE,gBA+ChD,CAAC;AAEF,qBAAa,8BAA8B;IACvC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,wBAAwB,EAAE,MAAM,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mCAAmC,EAAE,MAAM,CAAC;IAC5C,mCAAmC,EAAE,OAAO,CAAC;IAC7C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;CACpC;AAED,eAAO,MAAM,uCAAuC,eAAoD,CAAC;AACzG,eAAO,MAAM,4BAA4B,eAAyC,CAAC;AACnF,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AAE3F,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAqD,GAAG,4BAA4B,CAE9K;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQ5E"}
@@ -17,9 +17,10 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.bindSearchInWorkspacePreferences = exports.createSearchInWorkspacePreferences = exports.SearchInWorkspacePreferences = exports.SearchInWorkspacePreferenceContribution = exports.SearchInWorkspaceConfiguration = exports.searchInWorkspacePreferencesSchema = void 0;
19
19
  const nls_1 = require("@theia/core/lib/common/nls");
20
- const preferences_1 = require("@theia/core/lib/browser/preferences");
20
+ const preferences_1 = require("@theia/core/lib/common/preferences");
21
+ const preference_schema_1 = require("@theia/core/lib/common/preferences/preference-schema");
21
22
  exports.searchInWorkspacePreferencesSchema = {
22
- type: 'object',
23
+ scope: preferences_1.PreferenceScope.Folder,
23
24
  properties: {
24
25
  'search.lineNumbers': {
25
26
  description: nls_1.nls.localizeByDefault('Controls whether to show line numbers for search results.'),
@@ -82,7 +83,7 @@ function bindSearchInWorkspacePreferences(bind) {
82
83
  return createSearchInWorkspacePreferences(preferences, contribution.schema);
83
84
  }).inSingletonScope();
84
85
  bind(exports.SearchInWorkspacePreferenceContribution).toConstantValue({ schema: exports.searchInWorkspacePreferencesSchema });
85
- bind(preferences_1.PreferenceContribution).toService(exports.SearchInWorkspacePreferenceContribution);
86
+ bind(preference_schema_1.PreferenceContribution).toService(exports.SearchInWorkspacePreferenceContribution);
86
87
  }
87
88
  exports.bindSearchInWorkspacePreferences = bindSearchInWorkspacePreferences;
88
89
  //# sourceMappingURL=search-in-workspace-preferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-in-workspace-preferences.js","sourceRoot":"","sources":["../../src/common/search-in-workspace-preferences.ts"],"names":[],"mappings":";AAAA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module.d.ts","sourceRoot":"","sources":["../../src/node/search-in-workspace-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAM/D,wBAUG"}
1
+ {"version":3,"file":"search-in-workspace-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/search-in-workspace-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAO/D,wBAWG"}
@@ -20,6 +20,7 @@ const common_1 = require("@theia/core/lib/common");
20
20
  const search_in_workspace_interface_1 = require("../common/search-in-workspace-interface");
21
21
  const ripgrep_search_in_workspace_server_1 = require("./ripgrep-search-in-workspace-server");
22
22
  const ripgrep_1 = require("@vscode/ripgrep");
23
+ const search_in_workspace_preferences_1 = require("../common/search-in-workspace-preferences");
23
24
  exports.default = new inversify_1.ContainerModule(bind => {
24
25
  bind(search_in_workspace_interface_1.SearchInWorkspaceServer).to(ripgrep_search_in_workspace_server_1.RipgrepSearchInWorkspaceServer);
25
26
  bind(common_1.ConnectionHandler).toDynamicValue(ctx => new common_1.RpcConnectionHandler(search_in_workspace_interface_1.SIW_WS_PATH, client => {
@@ -29,5 +30,6 @@ exports.default = new inversify_1.ContainerModule(bind => {
29
30
  return server;
30
31
  }));
31
32
  bind(ripgrep_search_in_workspace_server_1.RgPath).toConstantValue(ripgrep_1.rgPath);
33
+ (0, search_in_workspace_preferences_1.bindSearchInWorkspacePreferences)(bind);
32
34
  });
33
35
  //# sourceMappingURL=search-in-workspace-backend-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-in-workspace-backend-module.js","sourceRoot":"","sources":["../../src/node/search-in-workspace-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,mDAAiF;AACjF,2FAAwH;AACxH,6FAA8F;AAC9F,6CAAyC;AAEzC,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,uDAAuB,CAAC,CAAC,EAAE,CAAC,mEAA8B,CAAC,CAAC;IACjE,IAAI,CAAC,0BAAiB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACzC,IAAI,6BAAoB,CAA0B,2CAAW,EAAE,MAAM,CAAC,EAAE;QACpE,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAA0B,uDAAuB,CAAC,CAAC;QACnF,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC,CAAC,CAAC;IACR,IAAI,CAAC,2CAAM,CAAC,CAAC,eAAe,CAAC,gBAAM,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"search-in-workspace-backend-module.js","sourceRoot":"","sources":["../../src/node/search-in-workspace-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,mDAAiF;AACjF,2FAAwH;AACxH,6FAA8F;AAC9F,6CAAyC;AACzC,+FAA6F;AAE7F,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,uDAAuB,CAAC,CAAC,EAAE,CAAC,mEAA8B,CAAC,CAAC;IACjE,IAAI,CAAC,0BAAiB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACzC,IAAI,6BAAoB,CAA0B,2CAAW,EAAE,MAAM,CAAC,EAAE;QACpE,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAA0B,uDAAuB,CAAC,CAAC;QACnF,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC,CAAC,CAAC;IACR,IAAI,CAAC,2CAAM,CAAC,CAAC,eAAe,CAAC,gBAAM,CAAC,CAAC;IACrC,IAAA,kEAAgC,EAAC,IAAI,CAAC,CAAC;AAC3C,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@theia/search-in-workspace",
3
- "version": "1.65.0-next.6+4384a9461",
3
+ "version": "1.65.1",
4
4
  "description": "Theia - Search in workspace",
5
5
  "dependencies": {
6
- "@theia/core": "1.65.0-next.6+4384a9461",
7
- "@theia/editor": "1.65.0-next.6+4384a9461",
8
- "@theia/filesystem": "1.65.0-next.6+4384a9461",
9
- "@theia/navigator": "1.65.0-next.6+4384a9461",
10
- "@theia/process": "1.65.0-next.6+4384a9461",
11
- "@theia/workspace": "1.65.0-next.6+4384a9461",
6
+ "@theia/core": "1.65.1",
7
+ "@theia/editor": "1.65.1",
8
+ "@theia/filesystem": "1.65.1",
9
+ "@theia/navigator": "1.65.1",
10
+ "@theia/process": "1.65.1",
11
+ "@theia/workspace": "1.65.1",
12
12
  "@vscode/ripgrep": "^1.14.2",
13
- "minimatch": "^5.1.0",
13
+ "minimatch": "^10.0.3",
14
14
  "react-textarea-autosize": "^8.5.5",
15
15
  "tslib": "^2.6.2"
16
16
  },
@@ -21,6 +21,9 @@
21
21
  {
22
22
  "frontend": "lib/browser/search-in-workspace-frontend-module",
23
23
  "backend": "lib/node/search-in-workspace-backend-module"
24
+ },
25
+ {
26
+ "frontendOnly": "lib/browser-only/search-in-workspace-frontend-only-module"
24
27
  }
25
28
  ],
26
29
  "keywords": [
@@ -48,7 +51,7 @@
48
51
  "watch": "theiaext watch"
49
52
  },
50
53
  "devDependencies": {
51
- "@theia/ext-scripts": "1.64.0"
54
+ "@theia/ext-scripts": "1.65.1"
52
55
  },
53
- "gitHead": "4384a946123dd1b41e65708e58928fc1af707c8d"
56
+ "gitHead": "ed70d58fe5ef87606f903ea92fcb684e83f5354f"
54
57
  }
@@ -139,13 +139,12 @@ export class SearchInWorkspaceTextArea extends React.Component<TextareaAttribute
139
139
  }
140
140
 
141
141
  override render(): React.ReactNode {
142
- const { onResize, ...filteredProps } = this.props;
143
142
  /* One row for an empty search input box (fixes bug #15229), seven rows for the normal state (from VS Code) */
144
143
  const maxRows = this.value.length ? 7 : 1;
145
144
 
146
145
  return (
147
146
  <TextareaAutosize
148
- {...filteredProps}
147
+ {...this.props}
149
148
  autoCapitalize="off"
150
149
  autoCorrect="off"
151
150
  maxRows={maxRows}
@@ -20,16 +20,16 @@ import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
20
20
  import { SearchInWorkspaceService, SearchInWorkspaceClientImpl } from './search-in-workspace-service';
21
21
  import { SearchInWorkspaceServer, SIW_WS_PATH } from '../common/search-in-workspace-interface';
22
22
  import {
23
- WebSocketConnectionProvider, WidgetFactory, createTreeContainer, bindViewContribution, FrontendApplicationContribution, LabelProviderContribution,
23
+ WidgetFactory, createTreeContainer, bindViewContribution, FrontendApplicationContribution, LabelProviderContribution,
24
24
  ApplicationShellLayoutMigration,
25
- StylingParticipant
25
+ StylingParticipant, RemoteConnectionProvider, ServiceConnectionProvider
26
26
  } from '@theia/core/lib/browser';
27
27
  import { SearchInWorkspaceWidget } from './search-in-workspace-widget';
28
28
  import { SearchInWorkspaceResultTreeWidget } from './search-in-workspace-result-tree-widget';
29
29
  import { SearchInWorkspaceFrontendContribution } from './search-in-workspace-frontend-contribution';
30
30
  import { SearchInWorkspaceContextKeyService } from './search-in-workspace-context-key-service';
31
31
  import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
32
- import { bindSearchInWorkspacePreferences } from './search-in-workspace-preferences';
32
+ import { bindSearchInWorkspacePreferences } from '../common/search-in-workspace-preferences';
33
33
  import { SearchInWorkspaceLabelProvider } from './search-in-workspace-label-provider';
34
34
  import { SearchInWorkspaceFactory } from './search-in-workspace-factory';
35
35
  import { SearchLayoutVersion3Migration } from './search-layout-migrations';
@@ -60,7 +60,8 @@ export default new ContainerModule(bind => {
60
60
  // The object to call methods on the backend.
61
61
  bind(SearchInWorkspaceServer).toDynamicValue(ctx => {
62
62
  const client = ctx.container.get(SearchInWorkspaceClientImpl);
63
- return WebSocketConnectionProvider.createProxy(ctx.container, SIW_WS_PATH, client);
63
+ const provider = ctx.container.get<ServiceConnectionProvider>(RemoteConnectionProvider);
64
+ return provider.createProxy<SearchInWorkspaceServer>(SIW_WS_PATH, client);
64
65
  }).inSingletonScope();
65
66
 
66
67
  bindSearchInWorkspacePreferences(bind);
@@ -39,19 +39,20 @@ import {
39
39
  EditorWidget, EditorOpenerOptions, FindMatch, Position
40
40
  } from '@theia/editor/lib/browser';
41
41
  import { WorkspaceService } from '@theia/workspace/lib/browser';
42
- import { FileResourceResolver, FileSystemPreferences } from '@theia/filesystem/lib/browser';
42
+ import { FileResourceResolver } from '@theia/filesystem/lib/browser';
43
43
  import { FileService } from '@theia/filesystem/lib/browser/file-service';
44
44
  import { SearchInWorkspaceResult, SearchInWorkspaceOptions, SearchMatch } from '../common/search-in-workspace-interface';
45
45
  import { SearchInWorkspaceService } from './search-in-workspace-service';
46
46
  import { MEMORY_TEXT } from '@theia/core/lib/common';
47
47
  import URI from '@theia/core/lib/common/uri';
48
48
  import * as React from '@theia/core/shared/react';
49
- import { SearchInWorkspacePreferences } from './search-in-workspace-preferences';
49
+ import { SearchInWorkspacePreferences } from '../common/search-in-workspace-preferences';
50
50
  import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
51
- import * as minimatch from 'minimatch';
51
+ import { minimatch, type MinimatchOptions } from 'minimatch';
52
52
  import { DisposableCollection } from '@theia/core/lib/common/disposable';
53
53
  import debounce = require('@theia/core/shared/lodash.debounce');
54
54
  import { nls } from '@theia/core/lib/common/nls';
55
+ import { FileSystemPreferences } from '@theia/filesystem/lib/common';
55
56
 
56
57
  const ROOT_ID = 'ResultTree';
57
58
 
@@ -366,6 +367,7 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
366
367
  if (!widget.editor.document.findMatches) {
367
368
  return [];
368
369
  }
370
+
369
371
  const results: FindMatch[] = widget.editor.document.findMatches({
370
372
  searchString: searchTerm,
371
373
  isRegex: !!searchOptions.useRegExp,
@@ -418,7 +420,7 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
418
420
  * @param patterns the glob patterns to verify.
419
421
  */
420
422
  protected inPatternList(uri: URI, patterns: string[]): boolean {
421
- const opts: minimatch.IOptions = { dot: true, matchBase: true };
423
+ const opts: MinimatchOptions = { dot: true, matchBase: true };
422
424
  return patterns.some(pattern => minimatch(
423
425
  uri.toString(),
424
426
  this.convertPatternToGlob(this.workspaceService.getWorkspaceRootUri(uri), pattern),
@@ -528,6 +530,7 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
528
530
 
529
531
  const fileUri = editorWidget.editor.uri.toString();
530
532
  const root: string | undefined = this.workspaceService.getWorkspaceRootUri(editorWidget.editor.uri)?.toString();
533
+
531
534
  return {
532
535
  root: root ?? this.defaultRootName,
533
536
  fileUri,
@@ -606,9 +609,11 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
606
609
  };
607
610
  this.resultTree.clear();
608
611
  this.forceVisibleRootNode = false;
612
+
609
613
  if (this.cancelIndicator) {
610
614
  this.cancelIndicator.cancel();
611
615
  }
616
+
612
617
  if (searchTerm === '') {
613
618
  this.refreshModelChildren();
614
619
  return;
@@ -617,14 +622,6 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
617
622
  const cancelIndicator = this.cancelIndicator;
618
623
  const token = this.cancelIndicator.token;
619
624
  const progress = await this.progressService.showProgress({ text: `search: ${searchTerm}`, options: { location: 'search' } });
620
- token.onCancellationRequested(() => {
621
- progress.cancel();
622
- if (searchId) {
623
- this.searchService.cancel(searchId);
624
- }
625
- this.cancelIndicator = undefined;
626
- this.changeEmitter.fire(this.resultTree);
627
- });
628
625
 
629
626
  // Collect search results for opened editors which otherwise may not be found by ripgrep (ex: dirty editors).
630
627
  const { numberOfResults, matches } = this.searchInOpenEditors(searchTerm, searchOptions);
@@ -645,18 +642,22 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
645
642
  searchOptions.maxResults -= numberOfResults;
646
643
  }
647
644
 
648
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
649
- let pendingRefreshTimeout: any;
645
+ let pendingRefreshTimeout: number | undefined;
646
+
650
647
  const searchId = await this.searchService.search(searchTerm, {
651
648
  onResult: (aSearchId: number, result: SearchInWorkspaceResult) => {
652
649
  if (token.isCancellationRequested || aSearchId !== searchId) {
653
650
  return;
654
651
  }
652
+
655
653
  this.appendToResultTree(result);
654
+
656
655
  if (pendingRefreshTimeout) {
657
656
  clearTimeout(pendingRefreshTimeout);
658
657
  }
659
- pendingRefreshTimeout = setTimeout(() => this.refreshModelChildren(), 100);
658
+
659
+ // convert type as we are in browser context
660
+ pendingRefreshTimeout = setTimeout(() => this.refreshModelChildren(), 100) as unknown as number;
660
661
  },
661
662
  onDone: () => {
662
663
  this.handleSearchCompleted(cancelIndicator);
@@ -664,6 +665,15 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
664
665
  }, searchOptions).catch(() => {
665
666
  this.handleSearchCompleted(cancelIndicator);
666
667
  });
668
+
669
+ token.onCancellationRequested(() => {
670
+ progress.cancel();
671
+ if (typeof searchId === 'number') {
672
+ this.searchService.cancel(searchId);
673
+ }
674
+ this.cancelIndicator = undefined;
675
+ this.changeEmitter.fire(this.resultTree);
676
+ });
667
677
  }
668
678
 
669
679
  focusFirstResult(): void {
@@ -1049,15 +1059,18 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
1049
1059
  }
1050
1060
 
1051
1061
  protected renderRootFolderNode(node: SearchInWorkspaceRootFolderNode): React.ReactNode {
1062
+ const isRoot = node.path === '/' || node.path === `/${this.defaultRootName}`;
1063
+ const name = this.toNodeName(node);
1064
+
1052
1065
  return <div className='result'>
1053
1066
  <div className='result-head'>
1054
1067
  <div className={`result-head-info noWrapInfo noselect ${node.selected ? 'selected' : ''}`}>
1055
1068
  <span className={`file-icon ${this.toNodeIcon(node) || ''}`}></span>
1056
1069
  <div className='noWrapInfo'>
1057
1070
  <span className={'file-name'}>
1058
- {this.toNodeName(node)}
1071
+ {name}
1059
1072
  </span>
1060
- {node.path !== '/' + this.defaultRootName &&
1073
+ {!isRoot &&
1061
1074
  <span className={'file-path ' + TREE_NODE_INFO_CLASS}>
1062
1075
  {node.path}
1063
1076
  </span>
@@ -56,7 +56,7 @@ export class SearchInWorkspaceService implements SearchInWorkspaceClient {
56
56
 
57
57
  // All the searches that we have started, that are not done yet (onDone
58
58
  // with that searchId has not been called).
59
- private pendingSearches = new Map<number, SearchInWorkspaceCallbacks>();
59
+ protected pendingSearches = new Map<number, SearchInWorkspaceCallbacks>();
60
60
 
61
61
  // Due to the asynchronicity of the node backend, it's possible that we
62
62
  // start a search, receive an event for that search, and then receive
@@ -64,9 +64,9 @@ export class SearchInWorkspaceService implements SearchInWorkspaceClient {
64
64
  // events until we get the search id and return it to the caller.
65
65
  // Otherwise the caller would discard the event because it doesn't know
66
66
  // the search id yet.
67
- private pendingOnDones: Map<number, string | undefined> = new Map();
67
+ protected pendingOnDones: Map<number, string | undefined> = new Map();
68
68
 
69
- private lastKnownSearchId: number = -1;
69
+ protected lastKnownSearchId: number = -1;
70
70
 
71
71
  @inject(SearchInWorkspaceServer) protected readonly searchServer: SearchInWorkspaceServer;
72
72
  @inject(SearchInWorkspaceClientImpl) protected readonly client: SearchInWorkspaceClientImpl;
@@ -117,8 +117,9 @@ export class SearchInWorkspaceService implements SearchInWorkspaceClient {
117
117
  return this.doSearch(what, roots.map(r => r.resource.toString()), callbacks, opts);
118
118
  }
119
119
 
120
- protected async doSearch(what: string, rootsUris: string[], callbacks: SearchInWorkspaceCallbacks, opts?: SearchInWorkspaceOptions): Promise<number> {
121
- const searchId = await this.searchServer.search(what, rootsUris, opts);
120
+ protected async doSearch(what: string, rootUris: string[], callbacks: SearchInWorkspaceCallbacks, opts?: SearchInWorkspaceOptions): Promise<number> {
121
+ const searchId = await this.searchServer.search(what, rootUris, opts);
122
+
122
123
  this.pendingSearches.set(searchId, callbacks);
123
124
  this.lastKnownSearchId = searchId;
124
125
 
@@ -140,8 +141,8 @@ export class SearchInWorkspaceService implements SearchInWorkspaceClient {
140
141
  return searchId;
141
142
  }
142
143
 
143
- async searchWithCallback(what: string, rootsUris: string[], callbacks: SearchInWorkspaceClient, opts?: SearchInWorkspaceOptions | undefined): Promise<number> {
144
- return this.doSearch(what, rootsUris, callbacks, opts);
144
+ async searchWithCallback(what: string, rootUris: string[], callbacks: SearchInWorkspaceClient, opts?: SearchInWorkspaceOptions | undefined): Promise<number> {
145
+ return this.doSearch(what, rootUris, callbacks, opts);
145
146
  }
146
147
 
147
148
  // Cancel an ongoing search.
@@ -26,7 +26,7 @@ import { SearchInWorkspaceContextKeyService } from './search-in-workspace-contex
26
26
  import { CancellationTokenSource } from '@theia/core';
27
27
  import { ProgressBarFactory } from '@theia/core/lib/browser/progress-bar-factory';
28
28
  import { EditorManager } from '@theia/editor/lib/browser';
29
- import { SearchInWorkspacePreferences } from './search-in-workspace-preferences';
29
+ import { SearchInWorkspacePreferences } from '../common/search-in-workspace-preferences';
30
30
  import { SearchInWorkspaceInput } from './components/search-in-workspace-input';
31
31
  import { SearchInWorkspaceTextArea } from './components/search-in-workspace-textarea';
32
32
  import { nls } from '@theia/core/lib/common/nls';
@@ -427,6 +427,7 @@ export class SearchInWorkspaceWidget extends BaseWidget implements StatefulWidge
427
427
  const searchOnType = this.searchInWorkspacePreferences['search.searchOnType'];
428
428
  if (searchOnType) {
429
429
  const delay = this.searchInWorkspacePreferences['search.searchOnTypeDebouncePeriod'] || 0;
430
+
430
431
  window.clearTimeout(this._searchTimeout);
431
432
  this._searchTimeout = window.setTimeout(() => this.doSearch(e), delay);
432
433
  }
@@ -434,7 +435,6 @@ export class SearchInWorkspaceWidget extends BaseWidget implements StatefulWidge
434
435
 
435
436
  protected readonly onKeyDownSearch = (e: React.KeyboardEvent) => {
436
437
  if (Key.ENTER.keyCode === KeyCode.createKeyCode(e.nativeEvent).key?.keyCode) {
437
- this.searchTerm = (e.target as HTMLInputElement).value;
438
438
  this.performSearch();
439
439
  }
440
440
  };
@@ -442,7 +442,8 @@ export class SearchInWorkspaceWidget extends BaseWidget implements StatefulWidge
442
442
  protected doSearch(e: React.KeyboardEvent): void {
443
443
  if (e.target) {
444
444
  const searchValue = (e.target as HTMLInputElement).value;
445
- if (this.searchTerm === searchValue && Key.ENTER.keyCode !== KeyCode.createKeyCode(e.nativeEvent).key?.keyCode) {
445
+
446
+ if (this.searchTerm === searchValue) {
446
447
  return;
447
448
  } else {
448
449
  this.searchTerm = searchValue;
@@ -0,0 +1,30 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2025 Maksim Kachurin and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { injectable, postConstruct } from '@theia/core/shared/inversify';
18
+ import { SearchInWorkspaceService } from '../browser/search-in-workspace-service';
19
+
20
+ @injectable()
21
+ export class BrowserOnlySearchInWorkspaceService extends SearchInWorkspaceService {
22
+ @postConstruct()
23
+ protected override init(): void {
24
+ super.init();
25
+
26
+ if (this.searchServer && typeof this.searchServer.setClient === 'function') {
27
+ this.searchServer.setClient(this);
28
+ }
29
+ }
30
+ }