Skip to content

Revert "Use yaml package for formatting"#1240

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:revert-formatter-changes
Apr 29, 2026
Merged

Revert "Use yaml package for formatting"#1240
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:revert-formatter-changes

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

What does this PR do?

This reverts commit 22d01b4.

There were many bugs in the new formatter implementation, so we're reverting for now.

In order to move forwards with this, we'll either need to adjust the behaviour of toString in the YAML parser through contributing patches, or write our own formatter.

What issues does this PR fix or reference?

Is it tested? How?

Existing tests

This reverts commit 22d01b4.

There were many bugs in the new formatter implementation,
so we're reverting for now.

In order to move forwards with this,
we'll either need to adjust the behaviour of `toString` in the YAML parser
through contributing patches,
or write our own formatter.

Fixes redhat-developer/vscode-yaml#1237
Fixes redhat-developer/vscode-yaml#1235
Fixes redhat-developer/vscode-yaml#1234
Fixes redhat-developer/vscode-yaml#1233
Fixes redhat-developer#1237
@datho7561 datho7561 force-pushed the revert-formatter-changes branch from 499b0b7 to 12cb58a Compare April 29, 2026 19:22
@datho7561 datho7561 merged commit 58b628b into redhat-developer:main Apr 29, 2026
4 checks passed
@datho7561 datho7561 deleted the revert-formatter-changes branch April 29, 2026 19:39
@holyspectral
Copy link
Copy Markdown

holyspectral commented Apr 30, 2026

For an extra data point, "yaml.format.singleQuote": true option is also broken in vscode-yaml 1.22.0. Things like this wouldn't get formatted to single quote. 1.21.0 works fine.

  - it: "should include default selector"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment