[BUG] VS Code extension - new look mode - diff boxes not in fixed width

Open Beginner friendly
#113,502 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript, vscode
Domain
frontend

Research direction

Start by locating the VS Code extension’s new look chat panel and the component or styles that render diff boxes; compare their font styling with code blocks and classic mode. Reproduce with an edit containing indented code, then verify diff text uses a monospace font and its indentation and columns align.

Written by the indexing model from the issue text.

Description

area:vscode bug has repro platform:macos platform:vscode regression
Preflight Checklist
  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code
What's Wrong?

Description

In new look mode, the text inside diff boxes uses a proportional font where it should use a fixed-width (monospace) one. Indentation and alignment come out uneven, so it's hard to read the structure of the changed code. Classic mode shows the same diffs in monospace.

Steps to reproduce

Turn on new look mode in the Claude Code VS Code extension.
Ask Claude to edit a file with indented code, such as nested blocks, YAML or a table in markdown.
Look at the diff box in the chat panel.
Expected behaviour

Diff content uses the editor's monospace font, or at least a monospace fallback, as code blocks and classic mode do. Indentation and column alignment stay intact.

Actual behaviour

Diff content uses a proportional font. Indented lines don't line up, and spaces and characters have different widths, so the code loses its layout.

What Should Happen?

Diff text uses a monospace font.
Indentation and column alignment match the file in the editor.
Added and removed lines line up character for character, so the changes are easy to compare.

Error Messages/Logs

Steps to Reproduce

Turn on new look mode in the Claude Code VS Code extension.
Ask Claude to edit a file with indented code, such as nested blocks, YAML or a table in markdown.
Look at the diff box in the chat panel.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Version 2.1.334

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Dominant language
TypeScript
Stars
158k
Forks
25.1k
Avg merge
1d 8h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.