You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot edit search string effectively on Windows with up arrow #83644
bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiessearchSearch widget and operation issues
But it is a single line that has wrapped, not multiple lines of text. We should be able to make this work the same. Although I don't really like the new text wrapping anyway (it didn't wrap at all before multiline search)
Hey again, so i could find everything and know how to correct the bug but the only things i need to have is the height of the Search when it is one line to avoid hardcoding a value that only work for my spec. And i don't know where it is and if the Search height change from different spec.
Ok so after looking into the CSS file of the search widget i have fin that the maxheight value was the same has the value clientHeight return. As i dont master CSS i could play with the file to see if it was the same for the height but i assume it is (would be weird if the fonctionnality is diffirent). So i assume it is the same value for all spec.
So i have put the value 24 and commit.
I have debug for the up ward and down ward
bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiessearchSearch widget and operation issues
Activity
sashikanth1994 commentedon Oct 30, 2019
The search text is in a single line so we don't expect the up arrow to work.
alexdima commentedon Oct 30, 2019
Sashikanth Palleti (@sashikanth1994) The search text is multiline, please see the screenshot, and the up arrow should work.
roblourens commentedon Oct 30, 2019
But it is a single line that has wrapped, not multiple lines of text. We should be able to make this work the same. Although I don't really like the new text wrapping anyway (it didn't wrap at all before multiline search)
alexdima commentedon Oct 31, 2019
Ok, now I see where the difficulty comes from... Perhaps the following could be done:
<textarea>is multiline (height can be checked),Based on the above, set the context keys for enabling
up/downto go through history...romainHainaut commentedon Dec 6, 2019
I could reproduce the exact same bug, so i will be looking if i can fix it
romainHainaut commentedon Dec 8, 2019
Hey again, so i could find everything and know how to correct the bug but the only things i need to have is the height of the Search when it is one line to avoid hardcoding a value that only work for my spec. And i don't know where it is and if the Search height change from different spec.
Anyways here is how i will correct the bug:
So the bug is in this file: https://github.com/microsoft/vscode/blob/master/src/vs/workbench/contrib/search/browser/searchWidget.ts#L83
the current function only look for /n , so the equivalent of manually adding a line.
To correct just need to modify the line by
if (textarea &&( isMultiline || textarea.clientHeight>THE_HEIGHT_OF_A_SINGLE_LINE) && textarea.selectionStart > 0) {The same for the downward
As you can see i don't have "THE_HEIGHT_OF_A_SINGLE_LINE", in my case it is 24 but has previously said i don't know if it is for my spec or for everyone.
Fix microsoft#83644
romainHainaut commentedon Dec 9, 2019
Ok so after looking into the CSS file of the search widget i have fin that the maxheight value was the same has the value clientHeight return. As i dont master CSS i could play with the file to see if it was the same for the height but i assume it is (would be weird if the fonctionnality is diffirent). So i assume it is the same value for all spec.
So i have put the value 24 and commit.
I have debug for the up ward and down ward
I hope my assumption are right :)
Fix #83644 (#86619)