Skip to content

docs: clarify optional formatter settings - #384

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/docs-optional-formatter-settings
Aug 20, 2026
Merged

docs: clarify optional formatter settings#384
chenjiahan merged 1 commit into
mainfrom
chenjiahan/docs-optional-formatter-settings

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

Language-specific formatter settings are optional, but the IDE integration guide did not clearly explain that projects can configure only the languages they use.

This PR separates the workspace-wide settings from the optional language-specific examples and keeps the English and Chinese guides aligned.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: cfcc77b
Status: ✅  Deploy successful!
Preview URL: https://965fa6cc.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-docs-optional-for.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 54808b3 into main Aug 20, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/docs-optional-formatter-settings branch August 20, 2026 03:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfcc77baab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"[jsonc]": { "editor.defaultFormatter": "rstack.rstack" },
"[markdown]": { "editor.defaultFormatter": "rstack.rstack" },
"[mdx]": { "editor.defaultFormatter": "rstack.rstack" },
"[toml]": { "editor.defaultFormatter": "rstack.rstack" },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Qualify TOML formatting as requiring a plugin

For projects with TOML files but no explicitly configured TOML Prettier plugin, this setting selects Rstack even though the default formatter plugins in packages/rstack/src/fmt/prettierPlugins.ts do not provide a TOML parser; the LSP consequently returns no edits for these files, so format-on-save silently stops working. Remove TOML from the general list or document the required plugin setup in both language copies.

AGENTS.md reference: AGENTS.md:L43-L43

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant