Microsoft/vscode

[folding] clicking on on line number of folded line should select full folding range

Open

#59,657 创建于 2018年9月28日

在 GitHub 查看
 (7 评论) (13 反应) (1 负责人)TypeScript (74,848 star) (10,221 fork)batch import
editor-foldingfeature-requesthelp wanted

描述

Issue Type: Bug

  1. Fold an area (e.g. a block in JSON) to a line
  2. Click the margin of the folded line
  3. Try to drag the mouse to select the whole folded area

Expected: Can select (only) the whole folded area

Actual: It's either the first line of folded area, or the whole folded area and next line.

Other editors do not have this problem, but the solutions are different:

  • Visual Studio: The whole folded area is selected when you click the margin
  • Sublime Text: When you drag down, it expands the selection from first line to the whole folded area. If you keep dragging, it will expand the selection to include next line.

Workaround: Click the beginning of the folded line, drag to the beginning of the next line. It works, but requires much more mouse precision than clicking/dragging in margin area.

Suggestion: A simple question: how often do you want to select only the first line when you click the margin of folded area? I believe it's very rare, so Visual Studio's solution is desired.

VS Code version: Code 1.27.2 (f46c4c469d6e6d8c46f268d1553c5dc4b475840f, 2018-09-12T16:17:45.060Z) OS version: Windows_NT x64 10.0.17134

Item Value
CPUs Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz (8 x 3096)
GPU Status 2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: unavailable_off
Memory (System) 15.85GB (4.97GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe D:\Repos\modern\NovaApi
Screen Reader no
VM 0%

贡献者指南