Skip to content

Cody suggestions in Svelte files always removes closing tags for script and style #1033

@Miroku87

Description

@Miroku87

Hello,
I have an issue with Cody while writing Svelte code: everytime I'm writing code just before a </script> or a </style> tag, if I get a Cody suggestion and I hit Tab to confirm it, the change will always delete the closing tag right after that.
It's quite annoying since it forces me to rewrite that tag every single time.

Is there a setting that maybe can avoid this?
As Cody itself suggested, I've tried putting this config in my ~/.config/sourcegraph/cody/cody.json

{
    "rules": {
        "svelte": {
            "preserveTags": {
                "script": true,
                "style": true
            }
        }
    },
    "filePatterns": {
        "*.svelte": {
            "enforceClosingTags": [
                "script",
                "style"
            ]
        }
    }
}

Unfortunately nothing has changed.

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