Skip to content

Format document deletes query metadata #589

Closed
@rvermeulen

Description

@rvermeulen

Describe the bug
The format document command deletes query metadata if it is the only contents of the file.

To Reproduce

  1. Create a query file containing only metadata.
  2. Format the document via the Format document command.

Expected behavior
Format (not as in format disk) the metadata or leave it as is.

Additional context
This is easily triggered with the option to format a document on save.

Metadata

Metadata

Assignees

No one assigned

    Labels

    VSCodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions