Skip to content
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 in terminal breaks with reflow #67468

Closed
kieferrm opened this issue Jan 29, 2019 · 6 comments · Fixed by #73599
Closed

Find in terminal breaks with reflow #67468

kieferrm opened this issue Jan 29, 2019 · 6 comments · Fixed by #73599
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities terminal Integrated terminal issues verified Verification succeeded
Milestone

Comments

@kieferrm
Copy link
Member

Issue Type: Bug

While testing #67307.

  1. ls -R in the terminal in vscode folder
  2. CMD+F in terminal
  3. type .js
  4. use next match arrow to jump to additional matches in the same line
    -> all good
  5. resize window to make terminal smaller
  6. try step 4 again
    -> all matches are in the wrong place; matches are limited to the same line

VS Code version: Code - Insiders 1.31.0-insider (acc7365, 2019-01-29T06:13:57.866Z)
OS version: Darwin x64 18.0.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 1, 2
Memory (System) 16.00GB (0.25GB free)
Process Argv -psn_0_83337077
Screen Reader no
VM 0%
@vscodebot vscodebot bot added the terminal Integrated terminal issues label Jan 29, 2019
@kieferrm
Copy link
Member Author

It doesn't seem that all matches are wrong. It seems that only those in the current viewport are wrong.

@Tyriar
Copy link
Member

Tyriar commented Jan 30, 2019

This is probably caused by the search addons cache, it's not being invalidated when a resize happens.

@Tyriar Tyriar added this to the Backlog milestone Jan 30, 2019
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities good first issue Issues identified as good for first-time contributors labels Jan 30, 2019
@lohxx
Copy link

lohxx commented Mar 4, 2019

Can i work on this issue?

@Tyriar
Copy link
Member

Tyriar commented Mar 5, 2019

@lohxx sounds good, the fix for this will be in the xterm.js repo and I think it's related to the line cache: https://github.com/xtermjs/xterm.js/blob/ce1c45fb18af8ba7a88ee148e10a76eed070357f/src/addons/search/SearchHelper.ts#L155

@thebradbain
Copy link

Hello!

I've submitted a PR (which has now been merged) on the relevant xterm.js issue #1915.

Does anything else need to be done (specifically with the vscode-xterm repo), or will the fix be applied to VSCode the next time its dependency version pinning is regularly updated?

@Tyriar
Copy link
Member

Tyriar commented Apr 28, 2019

@thebradbain it's too late for the April release but I will likely update xterm in May, thanks again for the contribution 🙂

@Tyriar Tyriar modified the milestones: Backlog, May 2019 Apr 28, 2019
@Tyriar Tyriar mentioned this issue May 13, 2019
10 tasks
@mjbvz mjbvz added the verified Verification succeeded label May 28, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities terminal Integrated terminal issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants