feat: implement file and text search functionality with glob pattern support by ethanyhou · Pull Request #22 · microsoft/copilot-for-eclipse · GitHub
Skip to content

feat: implement file and text search functionality with glob pattern support - #22

Merged
Ethan Hou (ethanyhou) merged 6 commits into
mainfrom
ethan/support-abapFileSearch
Apr 28, 2026
Merged

Ethan Hou (ethanyhou) merged 6 commits into
mainfrom
ethan/support-abapFileSearch

Conversation

@ethanyhou

Copy link
Copy Markdown
Contributor

Test:

CLS: ethan/supportABAPFileSearch

The file search should be supported in semanticfs:
image

Ethan Hou (ethanyhou) and others added 3 commits April 23, 2026 16:17
…urce-tree

Co-authored-by: Copilot <copilot@github.com>
…rams, and FindTextInFilesResult to records for improved readability and maintainability

Co-authored-by: Copilot <copilot@github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements client-side file and text search APIs to support Copilot language server requests (notably for non-local/virtual URI schemes like semanticfs://) within the Eclipse workspace.

Changes:

  • Added workspace/findFiles and workspace/findTextInFiles JSON-RPC request handlers in the core language client.
  • Implemented recursive workspace traversal in FileUtils to match files via glob patterns and search file contents via text/regex.
  • Added new LSP protocol record types for the request parameters and results, plus a new core bundle dependency on org.eclipse.core.filesystem.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
.../core/utils/FileUtils.java Adds URI/container resolution helpers and implements glob-based file search + text/regex search using EFS streams.
.../core/lsp/protocol/FindFilesParams.java New params record for workspace/findFiles.
.../core/lsp/protocol/FindFilesResult.java New result record for workspace/findFiles.
.../core/lsp/protocol/FindTextInFilesParams.java New params record for workspace/findTextInFiles.
.../core/lsp/protocol/FindTextInFilesResult.java New result record (with TextSearchMatch) for text search.
.../core/lsp/CopilotLanguageClient.java Exposes workspace/findFiles and workspace/findTextInFiles handlers delegating to FileUtils.
.../core/META-INF/MANIFEST.MF Adds org.eclipse.core.filesystem dependency to support EFS usage.

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
jdneo
Sheng Chen (jdneo) approved these changes Apr 28, 2026 •
@ethanyhou
Ethan Hou (ethanyhou) merged commit f94e037 into main Apr 28, 2026
4 checks passed
@ethanyhou
Ethan Hou (ethanyhou) deleted the ethan/support-abapFileSearch branch April 28, 2026 09:22
@jdneo Sheng Chen (jdneo) mentioned this pull request May 7, 2026
24 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants