Skip to content

lsp: "disable rule for this file" is buggy for astro, vue and svelte files #11707

@Sysix

Description

@Sysix

Having a file like test.vue:

<script>
debugger;
</script>

And executing the code action Disable no-debugger for this file.

Will output the result like:

// oxlint-disable no-debugger
<script>
debugger;
</script>

it should be inside the section source-text of the file like:

<script>
// oxlint-disable no-debugger
debugger;
</script>

Maybe change the description too to Disable no-debugger for this script block

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-editorArea - Editor and Language Server

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions