-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Find with selected values when reveal TerminalFind #190466
Find with selected values when reveal TerminalFind #190466
Conversation
reveal TerminalFind
@@ -81,9 +81,9 @@ export class TerminalFindWidget extends SimpleFindWidget { | |||
override reveal(): void { | |||
const initialInput = this._instance.hasSelection() && !this._instance.selection!.includes('\n') ? this._instance.selection : undefined; | |||
const xterm = this._instance.xterm; | |||
if (xterm && this.inputValue && this.inputValue !== '') { | |||
if (xterm && initialInput && initialInput !== '') { |
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.
do we want to fallback to this.inputValue
if initialInput
is undefined?
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 need to adjust and test it.
initialInput is undefined
hi @meganrogge , fallback to
|
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.
Works great, thanks again @tisilent 👏
fix #189343