Skip to content

F8 only works once, then have to reopen VSC #5351

@fulostix

Description

@fulostix

Type: Bug

Recently, the F8 button to run a selection of code has stopped working for the PowerShell Extension.

  1. I open VSC and wait fro the PS extension to load
  2. I select code and Press F8 and the code runs
  3. I select code again, and the F8 button will no longer run the code. I have to close an reopen VSC in order for this to work again.
  4. I tried uninstalling the PS extension, VSC, etc...but nothing works

This started happeing within the past 2 weeks or so. I saw someone on reddit was experiencing the same issue, but no one can figure out a solution. I am on the latest version of VSC as well as the latest version of the PS Extension.

Extension version: 2025.4.0
VS Code version: Code 1.107.0 (618725e67565b290ba4da6fe2d29f8fa1d4e3622, 2025-12-10T07:43:47.883Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1265U (12 x 2688)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.69GB (17.73GB free)
Process Argv --crash-reporter-id 3617448a-6ea1-4fe6-b56e-936ba2fe4fb9
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31435802
aj953862:31281341
nes-set-on:31340697
6abeh943:31336334
envsactivate1:31353494
cloudbuttont:31379625
todos-1:31405332
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
use-responses-api:31390855
anonusage:31403420
ddidt:31399633
afag3459:31428711
ec5jj548:31422691
terminalsuggestenabled:31431119
cp_cls_c_966_ss:31435507
c0683394:31419495
478ah919:31426797
a5gib710:31434435
7ig2g208:31434269
anthropic_thinking_t:31432745
406hc587_ask_agent:31428393
cp_cls_t_1081:31433292

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions