vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Match native inline comment borders and styling to the VS Code workbench

Open hazicy opened this issue 2 weeks ago • 1 comments

Use case

I maintain an extension that uses the public vscode.comments.createCommentController API for collaborative Markdown reviews. This request is for the editor's native inline comment widget, not an extension-owned webview or the separate Comments panel.

What could improve

The main request is visual consistency with the VS Code workbench. In VS Code 1.147.0 (macOS arm64, default dark theme), the native inline thread and its reply field use conspicuously square borders. They look disconnected from workbench inputs and controls that use subtle corner rounding. The first screenshot below shows this on the outer edge of the widget and around the reply field.

Proposal

  • Use the same corner-radius conventions as comparable workbench controls for the thread container and reply editor, including idle and focused states. The goal is to match VS Code, not to introduce a new card style.
  • Align border contrast, focus treatment, spacing, and button styling with the corresponding workbench components, while preserving visible focus in high-contrast themes.
  • As a secondary improvement, group the submit action with its reply editor and give thread actions a clearer hierarchy. New formatting controls are not required.
  • Preserve the compact footprint, keyboard navigation, screen-reader semantics, and extension-contributed commands.

Current behavior

Playwright screenshot of the native VS Code interface using synthetic comments.

current-inline

While composing a new comment

The focused composer already has rounded corners. The published thread and its idle reply field above use square edges. The request is to make these native states visually consistent with each other and with comparable workbench controls.

current-composing

hazicy avatar Nov 18 '26 17:11 hazicy

Closing as a duplicate of https://github.com/microsoft/vscode/issues/347315, since with https://github.com/microsoft/vscode/issues/347315 we are likely retiring the old commenting widget in favor of the new one.

alexr00 avatar Nov 24 '26 12:11 alexr00