Skip to content

Line IDs are dimmed or hidden when they're commented out #151

Description

@desplesda

What is the current behavior?

Text that's recognised as a line ID is affected by the user's dimming/hiding settings, even if it's inside a comment.

Image

Please provide the steps to reproduce, and if possible a minimal demo of the problem:

  1. In the Yarn Spinner extension settings, set Line Tags: Display in Editor to 'dimmed' or 'hidden'.
  2. Create a Yarn script that includes the following comments:
// Tom: Uh.. hello? #line:tutorial-tom-01 // tentative 
// Tom: Is anyone there? #line:tutorial-tom-02
  1. Observe that the text #line:tutorial-tom-01 and #line:tutorial-tom-02 is dimmed or hidden.

What is the expected behavior?

Dimming and hiding line IDs should only apply in un-commented code.

Please tell us about your environment

  • Operating System: macOS 15.7.3 (24G419)
  • Yarn Spinner Version: N/A
  • Extension Version: 3.2.184

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething not working as intendedVSCodeIssues concerning the extension for Visual Studio Code in the VSCodeExtension repo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions