Skip to content

[BUG] Cannot select lines containing section comments after latest updates #40

@cfgnunes

Description

@cfgnunes

First, Thanks a lot for this excellent extension it’s a really useful and elegant tool for organizing large code files!

Description:
After the most recent updates (around version v0.1.x), I can no longer select with the text cursor on lines that contain section comments, neither with the mouse nor with the keyboard.

This happens with any comment that defines a section (for example: # Section ----, // Section ----, etc.). The cursor simply skips over those lines or refuses to highlight them.

Steps to Reproduce:

  1. Open any file that includes section comments (e.g. # Section ----).
  2. Try to click or move the caret to that line using the keyboard (arrow keys) or mouse.
  3. Notice that the line cannot be selected or focused.

Expected Behavior:
The editor should allow normal selection and cursor movement on any line, including section comment lines.

Actual Behavior:
Lines containing section comments cannot be selected or focused, either by mouse click or keyboard navigation.

Environment:

  • Code Organizer extension version: v0.1.1
  • VS Code version 1.105.1 with theme 'One Dark Pro'
  • OS: Debian 13 with GNOME

Additional Notes:
This issue did not occur before the latest update, selection worked normally on section comment lines. It seems related to the new outline synchronization or decoration changes introduced recently.

See the video:

Screencast.From.2025-11-01.12-23-20.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions