-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Minimap and/or Minimap Slider isn't correct #50069
Comments
(Experimental duplicate detection) |
ok, this is really strange. At first I was completely confused but then I found something strange. Gif example of this happening. This is making me think that it has something to do with "word wrap" / "max columns". |
@m4xc4v413r4 I see the problem in your GIF, but I could not reproduce. I am pressing Ctrl+B and Alt+Z to toggle the sidebar or to toggle word wrap, but I don't observe the slider being off: I wonder what other settings you have, if this reproduces when extensions are disabled and if this reproduces for any file or only for a specific file. |
@alexandrudima Can you do me a favor and try that with "editor.minimap.renderCharacters": true ? To be honest I'm not sure of anything anymore. I literally did the exact same thing as my previous gif, with same extensions and same settings, and now there's no problem when toggling the Side Bar. I'mgoing to leave some more gifs here for different thing I tried. With extensions. With minimap.renderCharacters on: With extensions. With renderCharacters off: Without extensions every test results in the exact same thing as before: So the problem might be between minimap.renderCharacter and word wrapping, maybe even their word wrapping limits (max columns) since we can put a limit on both the editor and the minimap. My current settings are as following:
This includes the extension related settings (the ones in bold), those obviously are irrelevant on the no extensions tests. |
Do you see any problems in the console? Do you perhaps have CJK characters in that specific file. It might be a dup of #49378 |
No errors, some Violations though (I think the JS ones happened while recording the gif that I have linked at the end here), and found out some more things. So far all my tests were done with the window using half the screen (I use a 21:9 2560x1080 screen) using Windows Snap feature. Because I opened the console to test what you wanted I noticed that when I go above a certain width on the VSC window size, the behavior changes (you can actually see when this happens by looking at the minimap), wordwrap doesn't cause a problem anymore, but simply pressing Alt (which toggles the Menu Bar as you probably know) creates the same problem, but on the previous size I was using, pressing Alt doesn't create the problem. |
@m4xc4v413r4 I see it happening for you and I have tried and tried, but I am still unable to reproduce. I see that there is a clear point for your setup (when you enlarge the width of VS Code) after which the minimap is off. But after trying and trying, I could still not reproduce... I wonder if you can perhaps share the file that reproduces it, or if it reproduces on any file for you... I've even reviewed the source code that computes the minimap layout to look for a possible division by 0 or some other corner case, but I failed to find anything obvious: https://github.com/Microsoft/vscode/blob/7a557d12c961511039d3906c26c76c8556c30909/src/vs/editor/browser/viewParts/minimap/minimap.ts#L216-L296 To rule out some things, can you please disable all extensions, and slowly comment out your settings (including font settings, etc) to try to narrow down what exactly causes it to reproduce... |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Issue Type: Bug
"editor.minimap.enabled": true
"editor.minimap.renderCharacters": true
The minimap slider, more specifically the highlight area it shows of where you are on the code is not the correct position.
I assume that highlight should go from the top line to the bottom line of the visible code in the editor, but it's off by quite a lot.
You can see what I'm talking about in the following picture.
https://i.imgur.com/z3a1jVO.jpg
VS Code version: Code 1.23.1 (d0182c3, 2018-05-10T17:11:17.614Z)
OS version: Windows_NT x64 10.0.17134
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Extensions (5)
The text was updated successfully, but these errors were encountered: