Skip to content

Formatting support on web#1228

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:we-use-yaml-parser-as-formatter-instead-of-prettier
Apr 2, 2026
Merged

Formatting support on web#1228
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:we-use-yaml-parser-as-formatter-instead-of-prettier

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

@datho7561 datho7561 commented Mar 27, 2026

What does this PR do?

We switched the formatter implementation of yaml-language-server to be based on eemeli/yaml instead of prettier,
since it can provide all the same functionality, and avoiding the extra dependency on prettier reduces the total size of the language server.

Using prettier to provide formatting support was also a blocker for getting the formatting to work in the web version of the extension, since prettier doesn't work well with bundlers.

This PR removes the shim that changed formatting on web to a NO-OP, since we should now be able to format properly on web.

What issues does this PR fix or reference?

N/A

Is it tested? How?

  • Integration tests on web

We switched the formatter implementation of yaml-language-server to be
based on eemeli/yaml instead of prettier,
since it can provide all the same functionality,
and avoiding the extra dependency on prettier reduces the total size of the language server.

Using prettier to provide formatting support was also a blocker for getting
the formatting to work in the web version of the extension,
since prettier doesn't work well with bundlers.

This PR removes the shim that changed formatting on web to a NO-OP,
since we should now be able to format properly on web.

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the we-use-yaml-parser-as-formatter-instead-of-prettier branch from 8c3f57d to 73dfea2 Compare April 2, 2026 15:40
@datho7561 datho7561 marked this pull request as ready for review April 2, 2026 15:46
@datho7561 datho7561 changed the title Adjust to switch of formatter implementation from prettier to yaml Formatting support on web Apr 2, 2026
@datho7561 datho7561 merged commit 6dc8906 into redhat-developer:main Apr 2, 2026
5 checks passed
@datho7561 datho7561 added this to the 1.22.0 milestone Apr 2, 2026
@datho7561 datho7561 deleted the we-use-yaml-parser-as-formatter-instead-of-prettier branch April 2, 2026 15:54
@kieran-ryan
Copy link
Copy Markdown

kieran-ryan commented Apr 7, 2026

@datho7561 delighted to see this and feature parity in web - working great with the pre-release in the GitLab IDE! Looking forward to the next release 🙌

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants