Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems pane collapses whitespace #229112

Open
trevor-scheer opened this issue Sep 20, 2024 · 0 comments
Open

Problems pane collapses whitespace #229112

trevor-scheer opened this issue Sep 20, 2024 · 0 comments
Assignees

Comments

@trevor-scheer
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
  • OS Version:

Version: 1.93.1 (Universal)
Commit: 38c31bc
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

As an extension author, diagnostics undergo unexpected formatting specifically in the problems pane. In the screenshot, you can see what should be a graphql query with various levels of indentation with all of its leading whitespace collapsed. This issue isn't limited to only leading whitespace though - it seems like any whitespace per line is collapsed down to a single space.

Screenshot 2024-09-19 at 5 01 17 PM

Steps to Reproduce:

  1. Clone https://github.com/trevor-scheer/vscode-repro-whitespace
  2. Run extension with F5
  3. Open sample file sample-demo.rs
  4. Open problems pane
  5. Observe malformed diagnostic with collapsed whitespace
    (Side note: the whitespace is even preserved in the tooltip when you hover over the problem)
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

No branches or pull requests

2 participants