Skip to content

singleQuote working for template files in VSCode? #117

@neilyoung

Description

@neilyoung

This is my config:

{
    "plugins": [
        "prettier-plugin-go-template"
    ],
    "overrides": [
        {
            "files": [
                "*.gohtml"
            ],
            "options": {
                "parser": "go-template",
                "printWidth": 300,
                "tabWidth": 4,
                "singleQuote": true
            }
        }
    ]
}

Formatting is perfect (compared to what I get with the default VSCode HTML formatter), there is just one simple thing I thought I would have killed with singleQuote: true:

Image

The VSCode editor seemingly has an issue with some double quotes in a row, which is not there if the outer quote is a single quote.

It works at runtime, but is somehow marked as problem.

Any idea, how to fight that?

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