Skip to content

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

Merged
ethanyhou merged 6 commits intomainfrom
ethan/support-abapFileSearch
Apr 28, 2026
Merged

feat: implement file and text search functionality with glob pattern support#22
ethanyhou merged 6 commits intomainfrom
ethan/support-abapFileSearch

Conversation

@ethanyhou
Copy link
Copy Markdown
Contributor

Test:

CLS: ethan/supportABAPFileSearch

The file search should be supported in semanticfs:
image

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 review requested due to automatic review settings April 23, 2026 09:10
Copy link
Copy Markdown

Copilot AI left a comment

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>
@ethanyhou ethanyhou requested a review from jdneo April 28, 2026 06:22
jdneo
jdneo approved these changes Apr 28, 2026
@ethanyhou ethanyhou merged commit f94e037 into main Apr 28, 2026
4 checks passed
@ethanyhou ethanyhou deleted the ethan/support-abapFileSearch branch April 28, 2026 09:22
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