vscode-markdown icon indicating copy to clipboard operation
vscode-markdown copied to clipboard

Duplication of various VS Code UI elements

Open traits opened this issue 1 year ago • 5 comments

Type: Bug

See https://github.com/microsoft/vscode/issues/162615

Extension version: 3.4.3 VS Code version: Code 1.72.0 (64bbfbf67ada9953918d72e1df2f4d8e537d340e, 2022-10-04T23:20:39.912Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
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
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.82GB (8.27GB free)
Process Argv .
Screen Reader no
VM 0%

traits avatar Oct 07 '22 11:10 traits

I do not quite believe this is caused (at least solely) by this extension as this one does nothing related (as you may already notice).

The VS Code's Bisect tool is nice. However, it doesn't seem that it always gives a meaningful result (especially if it is because of conflict between multiple extensions)

https://github.com/yzhang-gh/vscode-markdown/issues/1160#issuecomment-1218072575 https://github.com/yzhang-gh/vscode-markdown/issues/1142#issuecomment-1170828383 https://github.com/yzhang-gh/vscode-markdown/issues/1041#issuecomment-974789844 https://github.com/yzhang-gh/vscode-markdown/issues/1037#issue-1048963912

For your issue, I would suggest doing more checks, e.g. I would disable all extensions except for this one (I don't think the reported issue will appear at this time), and then enable other extensions in a similar Bisect fashion until you reproduce the issue again.

yzhang-gh avatar Oct 07 '22 12:10 yzhang-gh

The effect is reproducible without any usage of bisect by simply disabling markdown-all. It requires a restart of vscode afterwards, but then all the formerly duplicated menu entries are no longer there (duplicates and original ones). Re-enabling in this new session is bringing them all back, but again as duplicates, as stated in the bug report.

traits avatar Oct 07 '22 12:10 traits

The problem is: you need to find which other extensions conflict with this one. (In other words, I don't see duplicated UI entries on my machine so I cannot reproduce the issue.)

I would disable all extensions except for this one (I don't think the reported issue will appear at this time), ...

Can you confirm this?

yzhang-gh avatar Oct 07 '22 12:10 yzhang-gh

If your extension is the only one, a lot menu items are not there from the beginning, including the buggy ones from the context menu. So, while your guess regarding some more general issue seems to have some credit, I simply don't have time and knowledge (I'm not even a JavaScript programmer) to investigate the issue in more detail. I can simply help with some sparse information fragments.

For me it seems now, the UI elements in question are originally provided by some language-related extension (my code is Python, so for something like reference finding pylance would be a candidate?) and it could be possible, they are colliding with your and perhaps other extensions. But this is something, I cannot answer. The other possibility, that markdown-all causes this alone as soon as such menu entries appear remains open, IMHO. The owner of the linked parallel vscode issue should know other ways to nail down the culprit.

I would suggest leaving this topic open until the content of our discussion has been incorporated by the aforementioned vscode's own bug assignees. Perhaps it will provide them with minimal additional input.

traits avatar Oct 07 '22 12:10 traits

I simply don't have time and knowledge (I'm not even a JavaScript programmer) to investigate the issue in more detail

No worries, let's leave this open to see whether there is more information from other users.

yzhang-gh avatar Oct 07 '22 13:10 yzhang-gh

I had the same issue as reported here https://github.com/microsoft/vscode/issues/162615

It turns out that I have 2 Reference Search View I disabled the one from microsoft and that fixed my issue

image

realqpat avatar May 10 '23 02:05 realqpat

Thanks for the update!

yzhang-gh avatar May 10 '23 17:05 yzhang-gh