-
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
Support quick file-search with go to line #9478
Support quick file-search with go to line #9478
Conversation
effb14f
to
b8bc103
Compare
packages/file-search/src/browser/file-search-frontend-module.ts
Outdated
Show resolved
Hide resolved
d133606
to
3530670
Compare
3530670
to
f64247c
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.
I confirmed that the changes work well functionality 👍
I have some minor comments about variable names, let me know if you disagree.
fca2dcc
to
e642139
Compare
The quick file-search text box (normally accessed via Ctrl + P) now allows the option to append filter input separators to indicate the target line number and column. This follows the current vscode patterns. E.g. <file filter>:<line number?>:<column?> <file filter>#<line number?>#<column?> <file filter>:<line number?>,<column?> Signed-off-by: Alvaro Sanchez-Leon <[email protected]>
e642139
to
6e31d41
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 work correctly for me, and I verified the code as well 👍
- verified
pattern:line
format. - verified
pattern:line:column
format. - verified
pattern:line,column
format.
Offline we spoke about a potential future improvement where we open the editor with a buffer (display previous content) instead of the selected line being the first in the document. Would you mind opening an issue to track this feature once the pull-request is merged?
The issue #9495 is now created to follow up and address this pending issue. |
@vince-fugnitto, @marechal-p, |
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.
@emilyann211 did you comment by accident? |
What it does
The quick file-search text box (normally accessed via Ctrl + P)
now allows the option to append filter input separators to indicate
the target line number and column. This follows the current vscode
patterns.
E.g.
:<line number?>:<column?>
#<line number?>#<column?>
:<line number?>,<column?>
Fixes: #9476.
How to test
The 'gif' attached shows the new facility available in the quick file-search box, verify that:
Review checklist
Reminder for reviewers
Signed-off-by: Alvaro Sanchez-Leon [email protected]