-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
onDidChangeTextEditorVisibleRanges shows strange behaviour! #154977
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.69.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Hello bot :) I did upgrade and still the same. |
@alexdima |
Any progress please? Affecting other plugins: |
@tomByrer @mtbaqer. This issue seems to be neglected, even though it doesn't only affect extensions creator, but also VS Code performance. |
Issue Type: Bug
I've been working with
onDidChangeTextEditorVisibleRanges
event lately and I have noticed few things, I will explain with code example and some different cases:As per documents
In my case, the event is fired as expected, but with the following condition only; when I navigate (scroll around) the editor, either by mouse or keyboard arrows in an existing open text editor.
However, the strange behaviour only happens with newly opened text editor and when switching to a different tab.
To simplify it, Assuming that I have the editor max visible range of 33 lines:
Using the above code and mentioned cases:
Example for case (B.1) it prints the following:
Example for case (B.2) it prints nothing
Example for case (B.3) it prints the following:
VS Code version: Code 1.69.0 (92d25e3, 2022-07-07T05:28:36.503Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: