Skip to content

Editor GPU: Double rendering after undo #237583

Open

Description

@Tyriar

Repro:

  1. Enable editor gpu rendering, reload window
  2. Go to this line in vscode:
    export function asArray<T>(x: T | T[]): T[];
    export function asArray<T>(x: T | readonly T[]): readonly T[];
    export function asArray<T>(x: T | T[]): T[] {
    return Array.isArray(x) ? x : [x];
    }
  3. Delete that function
  4. Undo, 🐛 bad render

Image

Activity

  1. added
    bug
    editor-gpu
    on Jan 9, 2025
  2. ShreyasJejurkar commented on Jan 20, 2025

    @ShreyasJejurkar

    how to enable editor gpu rendering in vs code insiders? I don't find any doc or issue about it.

  3. Tyriar commented on Jan 20, 2025

    @Tyriar
    ContributorAuthor

    Shreyas Jejurkar (@ShreyasJejurkar) #221145 is the main issue, in the very latest insiders (the one released today) you should see this setting now:

    Image

    Keep in mind the focus for now is on stability and feature completeness over performance though.

  4. ShreyasJejurkar commented on Jan 20, 2025

    @ShreyasJejurkar

    Thanks for this Daniel Imms (@Tyriar) . Any idea when it would be released to border audience?

  5. Tyriar commented on Jan 20, 2025

    @Tyriar
    ContributorAuthor

    Shreyas Jejurkar (@ShreyasJejurkar) I answered this a while ago in #221145 (comment), still have some big functionality parts to add but getting towards the Focus on performance phase.

  6. ShreyasJejurkar commented on Jan 20, 2025

    @ShreyasJejurkar

    I enabled this setting, but I got the below popup.

    Image

  7. Tyriar commented on Jan 21, 2025

    @Tyriar
    ContributorAuthor

    Shreyas Jejurkar (@ShreyasJejurkar) are you on Linux or a VM, when you hit that it typically means Chromium/Electron has your hardware/environment in their gpu blacklist.

  8. ShreyasJejurkar commented on Jan 21, 2025

    @ShreyasJejurkar

    @ShreyasJejurkar are you on Linux or a VM, when you hit that it typically means Chromium/Electron has your hardware/environment in their gpu blacklist.

    I am on Windows 10 and my work PC has Intel XE Graphics. I don't see this issue on my personal laptop which is having RTX 4070 GPU.

  9. Tyriar commented on Jan 21, 2025

    @Tyriar
    ContributorAuthor

    Shreyas Jejurkar (@ShreyasJejurkar) if you run the command Developer: Show GPU Info via the command palette it should say why webgpu isn't enabled.

  10. added
    postponed-during-endgame
    on Feb 28, 2025
  11. removed
    postponed-during-endgame
    on Oct 9, 2025
  12. dalisoft commented on Oct 10, 2026

    @dalisoft
    Contributor

    Henning Dieterichs (@hediet) Daniel Imms (@Tyriar) Please look at #340836. #340836 fixes this issue, at least on Apple ARM64 Mac's with macOS 27

  13. danyfiling88-lang commented on Oct 26, 2026

    @danyfiling88-lang

    Repro:

    1. Disble editor gpu rendering, reload window
    2. Go to this line in vscode:
      export function asArray<T>(x: T | T[]): T[];
      export function asArray<T>(x: T | readonly T[]): readonly T[];
      export function asArray<T>(x: T | T[]): T[] {
      return Array.isArray(x) ? x : [x];
      }
    3. Delete that function
    4. Undo, 🐛 bad render

    Image

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

Metadata

Metadata

Labels

bugeditor-gpu

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions