Skip to content

buf-lsp reject # comments with invalid character error #624

Description

@abdulelah

Buf Latest Version

  • I'm using the latest version of buf.

GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/vscode-buf" or we will automatically close your issue, see the instructions above!)

https://github.com/bufbuild/vscode-buf

steps

in any of the files like buf.gen.yaml or buf.yaml add a comment and immediately buf-lsp will incorrectly complain about # as it will consider it invalid character.

Output

example comment

version: v2
clean: true
....
VS Code buf-lsp shows the following error in the first line of the above example: invalid character.

Expected Output

Buf-lsp must not show any errors for the # to comment

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions