Microsoft/vscode

Entering Markdown Preview doesn't retain Alt key state for editor buttons

Open

#199,998 创建于 2023年12月5日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
bughelp wantedwebview

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

Type: Bug

When you hold the Alt key, you can change the behavior of the editor buttons for preview button ("a") and editor split button ("b").

For a source editor with a markdown file:

  1. Normal state: a. Open Preview to the Side b. Split Editor Right
  2. Alt state: a. Open Preview b. Split Editor Down

For a markdown preview:

  1. Normal state: a. Show Source b. Split Editor Right
  2. Alt state: a. Show Source b. Split Editor Down

When you press and hold Alt and click button "a" repeatedly, you'd expect to toggle 2-4-2-4-... indefinitely. But you actually toggle 2-3-1-3-1-... The "Alt" state gets lost when you enter the Preview.

Interestingly, the switch from the preview to the source code editor keeps the Alt state, then on going back to the preview it gets lost again: 4-2-3-1-3-1-... etc.

VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z) OS version: Windows_NT x64 10.0.19045 Modes: Restricted

Item Value
CPUs Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)
GPU Status 2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled
Load (avg) undefined
Memory (System) 15.93GB (7.99GB free)
Process Argv --crash-reporter-id 6fb644fb-c7e9-4db8-90f4-16f041378e18
Screen Reader no
VM 0%
Extension Author (truncated) Version
vscode-language-pack-de MS- 1.84.2023111509
vscode-fileutils sle 3.10.3
svelte-vscode sve 108.1.0

贡献者指南