Skip to content

Red text highlighting in VSCode extension when more than one line in the title block #501

@dbdean

Description

@dbdean

I'm running the Quarto VSCode Extension version 1.113.0, inside of a dev container. I seem to have the same problem when downgrading to 1.112.0, so I don't think the following problem is directly related to a change in the extensions itself.

I'm not sure what has changed recently to cause this, but whenever I open a qmd file with more than one line in my title block, the quarto extension is causing all python code to show up as red text.

For example, this is fine:

image

As is this:

image

But if I add another line to the title block, I get red python text:

image

Even just an extra blank line will do it:

image

This has only just started happening for me, and VSCode's extension bisect has confirmed that it is being caused by the Quarto Extension.

Any ideas on what could be happening and how to fix it would be very appreciated. It appears to have no impact on the functionality otherwise, but it is a lot harder to follow the code when everything is red.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions