Skip to content

Make comment continuation on type formatting configurable#4163

Open
AboodFares wants to merge 1 commit into
Shopify:mainfrom
AboodFares:make-comment-continuation-configurable
Open

Make comment continuation on type formatting configurable#4163
AboodFares wants to merge 1 commit into
Shopify:mainfrom
AboodFares:make-comment-continuation-configurable

Conversation

@AboodFares

@AboodFares AboodFares commented Jul 19, 2026

Copy link
Copy Markdown

Closes #4152

Adds a new onTypeFormatting entry to featuresConfiguration with a commentContinuation option (enabled by default). When disabled, breaking a line inside a comment no longer inserts a leading # on the next line.

  • Server: new default config in GlobalState, passed by the server into the OnTypeFormatting request
  • VS Code: new rubyLsp.featuresConfiguration.onTypeFormatting.commentContinuation setting (forwarded automatically as an initialization option, so any editor can configure it)
  • Docs updated and tests added (unit, config merge, and end-to-end)

@AboodFares
AboodFares requested a review from a team as a code owner July 19, 2026 03:07
Adds a new onTypeFormatting entry to featuresConfiguration, with a
commentContinuation option (enabled by default). When disabled, breaking
a line inside a comment no longer inserts a leading # on the next line.

Closes Shopify#4152
@AboodFares
AboodFares force-pushed the make-comment-continuation-configurable branch from 18168af to a97e842 Compare July 19, 2026 03:11
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.

Make it possible to disable comment continuation

1 participant