-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
file operation context menu offset error #188903
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.80.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
I can reproduce and the part where this happens using mouse will be fixed with #188923. I jumped ahead to address it because I was recently in the area of improving context menu locations when mouse is used. However, if you are using the keyboard and thus the anchor is a vscode/src/vs/base/browser/contextmenu.ts Lines 46 to 47 in fdf8af8
When opening the context menu here:
Or alternatively, compute the position and cap it at the max width. |
@bpasero I verified that the mouse behaved as expected, Thank you! But I still want to ask a simple question, can you tell me what is the name of the command that shows the menu through the keyboard? |
I think |
That's it, and now it looks like menu at the maximum width displayed, it feels okay, do we need to try modifying to pop up in the center of the width of the display? |
Type: Bug
When the name of a folder is very long, right-clicking the pop-up menu will still locate the real length of the name, may be offset too far:
![image](https://private-user-images.githubusercontent.com/17105034/256170801-6f87db89-db66-4569-80de-3d4e250c35d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NzczODMsIm5iZiI6MTcyMDk3NzA4MywicGF0aCI6Ii8xNzEwNTAzNC8yNTYxNzA4MDEtNmY4N2RiODktZGI2Ni00NTY5LTgwZGUtM2Q0ZTI1MGMzNWQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE0VDE3MTEyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzMTIzMTlmZWQzOTVhMzI1MWJmNzA2ZDg0ODdkNWE2MTgwNzJjZmMxMTc1NDYwZTNkM2NjYzM1NDI3OTM1ZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BQyhi30My9dI4K49RH9qib0a6XhBooSeOg1HMdGoSiI)
Normal situation:
![image](https://private-user-images.githubusercontent.com/17105034/256170684-c383d4fb-8863-49ee-b8bf-64c26b66f4ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NzczODMsIm5iZiI6MTcyMDk3NzA4MywicGF0aCI6Ii8xNzEwNTAzNC8yNTYxNzA2ODQtYzM4M2Q0ZmItODg2My00OWVlLWI4YmYtNjRjMjZiNjZmNGFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE0VDE3MTEyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3MWE2M2Y5ZDk4NzM2ZjgyNzFkNThlYzBjNWVhYzVhMjg4MDNlOGJiNjhlY2Y1YzBjZjg2Y2JjNTU5NjZlZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6hCDgw9ox1JtzrxOveZMyfHyh-1ruW-cxMH7AdwTYB8)
If this is indeed a bug, I will try to fix it
VS Code version: Code 1.79.2 (Universal) (695af09, 2023-06-14T08:58:52.392Z)
OS version: Darwin arm64 22.4.0
Modes:
Remote OS version: Linux x64 3.10.0-1160.el7.x86_64
Remote OS version: Linux x64 3.10.0-1160.el7.x86_64
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (20)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: