Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prettier): Debug print Doc AST #9013

Merged
merged 3 commits into from
Feb 10, 2025
Merged

feat(prettier): Debug print Doc AST #9013

merged 3 commits into from
Feb 10, 2025

Conversation

leaysgur
Copy link
Contributor

Part of #5068

Update doc.to_string() output to Prettier.__debug.formatDoc() compatible Doc AST json format.

# Usecase
cargo run -p oxc_prettier --example prettier --quiet -- --debug | jq .

# Advanced
cargo run -p oxc_prettier --example prettier --quiet -- --debug | pbcopy
# Open Prettier playground, select doc-explorer as parser option, then paste as input!

Copy link

graphite-app bot commented Feb 10, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added A-prettier Area - Prettier C-enhancement Category - New feature or request labels Feb 10, 2025
@Boshen
Copy link
Member

Boshen commented Feb 10, 2025

Nice! Can you add the usage example to the top of oxc_prettier/examples/prettier.rs?

@leaysgur
Copy link
Contributor Author

Updated 👉🏻 0a35e10 (#9013)

(BTW, I also started building viewer app for local dev. 🙈)

image

Copy link

codspeed-hq bot commented Feb 10, 2025

CodSpeed Performance Report

Merging #9013 will not alter performance

Comparing p/doc (0a35e10) with main (d7802a7)

Summary

✅ 33 untouched benchmarks

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Feb 10, 2025
Copy link

graphite-app bot commented Feb 10, 2025

Merge activity

  • Feb 10, 2:49 PM UTC: @leaysgur we removed the merge queue label because we could not find a Graphite account associated with your GitHub profile.

You must have a Graphite account in order to use the merge queue. Create an account and try again using this link

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 10, 2025
@Boshen Boshen merged commit f143149 into main Feb 10, 2025
26 checks passed
@Boshen Boshen deleted the p/doc branch February 10, 2025 15:05
Boshen pushed a commit that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-prettier Area - Prettier C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants