-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search-in-workspace: Perform workspace search in dirty file content #8579
search-in-workspace: Perform workspace search in dirty file content #8579
Conversation
3dfb705
to
177f5d4
Compare
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
fa98f7a
to
afabae9
Compare
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
afabae9
to
311ddfb
Compare
@vince-fugnitto Thanks for the reviews. I updated the PR 👍 |
54613b0
to
49fcf9b
Compare
6aea10b
to
97aead7
Compare
97aead7
to
9e46acb
Compare
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
9e46acb
to
edf9b36
Compare
@marechal-p I updated the PR to fix the issues you mentioned. Please review again when you have time, thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested most button combinations, and only "Match Whole Words" didn't work.
edf9b36
to
5f654a3
Compare
@akosyakov Would you move the |
5f654a3
to
2fc02f6
Compare
dc93a2b
to
09f08cd
Compare
09f08cd
to
cb3bcad
Compare
263fa63
to
9de6563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature works correctly and code LGTM. Please squash your commits.
f479d0d
to
9f1a4b4
Compare
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
fe18673
to
e1e69de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes very well for me and the code looks good as well 👍
Thank you for the hard work on the pull-request!
e1e69de
to
bc76a74
Compare
+ `Search In Workspace` can now search content in dirty files and display the results in siw view. + Utilized the `findMatches` function from `monaco editor` to get the search matches from all open editors. + Added `minimatch` as a dependency in `siw`. + Change alert message in search view when no workspace present. + Only display alert in search view when neither workspace nor editor present. + Introduce `findMatches` method to `TextEditorDocument` interface. Co-authored-by: fangnx <naxin.fang@ericsson.com> Co-authored-by: vince-fugnitto <vincent.fugnitto@ericsson.com> Signed-off-by: DukeNgn <duc.a.nguyen@ericsson.com>
bc76a74
to
7797a32
Compare
What it does
Fixes: #5609
Closes: #5651
Search In Workspace
can now search content in dirty files and display the results in search view.findMatches
function frommonaco editor
to get the search matches.Note: PR #5651 can be safely closed if this PR get merged since this PR is an enhancement.
How to test
auto save
is off)Search-in-Workspace
(ctrl/cmd
+shift
+f
) and search for a certain keyword.Checklist when testing with search options
Match Case
Match Whole Word
Use Regular Expression
Include Ignored Files
files to include
files to exclude
Review checklist
Reminder for reviewers
Co-authored-by: fangnx naxin.fang@ericsson.com
Co-authored-by: vince-fugnitto vincent.fugnitto@ericsson.com
Signed-off-by: DukeNgn duc.a.nguyen@ericsson.com