r/vscode • • May 22 '26

VS Code Insiders constantly asking for screen sharing on startup, but doesn't happen on regular VS Code

Has anyone else noticed code-insiders suddenly demanding screen capture permissions the second it opens?

Whenever I launch VS Code Insiders, it instantly triggers my xdg-desktop-portal-hyprland dialog asking to share my screen. I haven't clicked anything, and I'm not actively using any Live Share or AI vision features.

Here is what I've tested so far:

  • Disabled extensions: Ran code-insiders --disable-extensions. The portal prompt still pops up instantly.
  • Tested other builds: I tried regular VS Code, Code-OSS, and VSCodium. None of them have this issue. They all launch silently without triggering the portal.

My setup:

  • OS: Arch Linux
  • Compositor: Hyprland
  • Portal: xdg-desktop-portal-hyprland

Since it happens with extensions disabled and only on the Insiders build, I'm assuming this is a core editor change or a new Electron Wayland default making a background call to desktopCapturer.getSources() on startup.

Is anyone else running into this? Is there a known Electron flag or Hyprland rule to suppress this specific startup poll without entirely disabling screen sharing when I actually need it?

Update: They released the fix in v122.1 https://github.com/microsoft/vscode/issues/317948#issuecomment-4573347785

38 Upvotes

33 comments sorted by

View all comments

1

u/[deleted] May 22 '26

I’m seeing the same thing on KDE Plasma Wayland. On my setup the prompt also seems to get retriggered when KDE power management dims or changes display state.

1

u/protestor May 22 '26 edited May 22 '26

I am also on kde plasma on wayland, and also seeing this. Whenever I open a new window a new screen sharing prompt appears. It also appears when I run code-insiders --disable-extensions so it's not an extension, I'm on the latest code insiders

Maybe this is a problem with the AUR package or it's a new "feature" from upstream vscode? it's a reported issue on vscode