PowerShell / PowerShell/vscode-powershell

Add command for aborting current script execution

Open
#203 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Extension Terminal Issue-Enhancement
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

I ran some script with F8 - there was an infinite loop with no output. I saw no indication anything was running (the OUTPUT window didn't pop up), but I couldn't run anything else with F8.

There should be some indication that a selection is running, and there should be a way to stop it.

Also, if I do add some output to the loop, e.g.

while($true){1}

I can' t seem to kill VSCode, clicking on the X doesn't close it, I need to kill the process some other way.

Contributor guide

Open the 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.

Research direction

Start by tracing the F8 selection-execution path in the VS Code extension and how the OUTPUT window is opened or updated. Reproduce the infinite loop with while($true){1}; done means a running-selection indication appears and a command can stop execution without requiring VS Code to be killed.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.