Repository: vscode
Issue: file operation context menu offset error
Labels: bug,file-explorer,system-context-menu

Type: <b>Bug</b>

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://github.com/microsoft/vscode/assets/17105034/6f87db89-db66-4569-80de-3d4e250c35d3)

![image](https://github.com/microsoft/vscode/assets/17105034/abf8b5f5-0711-4f98-a797-9f662198fcfa)


Normal situation：
![image](https://github.com/microsoft/vscode/assets/17105034/c383d4fb-8863-49ee-b8bf-64c26b66f4ac)

If this is indeed a bug, I will try to fix it


VS Code version: Code 1.79.2 (Universal) (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 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

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 Pro (8 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|4, 4, 4|
|Memory (System)|16.00GB (0.06GB free)|
|Process Argv|--crash-reporter-id a0e70e19-77dc-4670-9ebc-f19a3a98c398|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: wutong_test|
|OS|Linux x64 3.10.0-1160.el7.x86_64|
|CPUs|Intel(R) Xeon(R) CPU E5-2696 v3 @ 2.30GHz (72 x 2299)|
|Memory (System)|62.75GB (8.08GB free)|
|VM|18%|

|Item|Value|
|---|---|
|Remote|SSH: wutong_test|
|OS|Linux x64 3.10.0-1160.el7.x86_64|
|CPUs|Intel(R) Xeon(R) CPU E5-2696 v3 @ 2.30GHz (72 x 2299)|
|Memory (System)|62.75GB (8.08GB free)|
|VM|18%|
</details><details><summary>Extensions (20)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-edge-devtools|ms-|2.1.2
jupyter-keymap|ms-|1.1.2
remote-containers|ms-|0.299.0
remote-ssh|ms-|0.102.0
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.79.5
vscode-remote-extensionpack|ms-|0.24.0
remote-explorer|ms-|0.4.0
remote-server|ms-|1.2.1
vscode-icons|vsc|12.4.0
copilot|Git|1.98.275
vscode-language-pack-zh-hans|MS-|1.79.2023061409
python|ms-|2023.12.0
vscode-pylance|ms-|2023.7.30
jupyter|ms-|2023.5.1101742258
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.15
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
autodocstring|njp|0.6.1

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30792625
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
e537b577:30795824
dsvsc013:30795093

```

</details>

<!-- generated by issue reporter -->