Skip to content

Improve newline behavior for single-line # comments#188

Open
abhinavgautam01 wants to merge 1 commit intofacebook:mainfrom
abhinavgautam01:fix/vscode-comment-newline
Open

Improve newline behavior for single-line # comments#188
abhinavgautam01 wants to merge 1 commit intofacebook:mainfrom
abhinavgautam01:fix/vscode-comment-newline

Conversation

@abhinavgautam01
Copy link
Copy Markdown

Fixes #91.

This PR improves VSCode editing UX for Starlark by continuing single-line # comments when pressing Enter.

Change

  • Added onEnterRules in vscode/syntaxes/starlark.configuration.json to append # on newline after comment lines.

Validation

  • cargo clippy
  • cargo build
  • cargo test
  • cargo bench

Note

vscode TypeScript compile failure is currently reproducible on main due existing dependency/type mismatch and is not introduced by this PR.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 2, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D103523794. (Because this pull request was imported automatically, there will not be any future comments.)

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lsp could use better newline in single-line comments

1 participant