Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Move prompt gathering out of GetSessionDetails

Open
#423 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell

Research direction

Start by locating GetSessionDetails and ConsoleService, then trace where prompt gathering and prompt-function errors are handled. Move prompt gathering to ConsoleService and verify that prompt errors produce the default prompt as described in the issue.

Written by the indexing model from the issue text.

Description

Area-Extension Terminal Issue-Enhancement

When I introduced the concept of gathering session details after each command that gets run, I rolled prompt gathering into that to avoid running yet another command each time a prompt is needed. It seems that this causes more problems than necessary because a prompt function that throws errors does not get handled correctly anymore.

I'll move prompt gathering back out into the ConsoleService so that we can check for errors and return a default prompt appropriately.

Dominant language
C#
Stars
767
Forks
266
Avg merge
3d 16h
Merged PRs (30d)
1

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.

More from PowerShell/PowerShellEditorServices

All issues in PowerShell/PowerShellEditorServices

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.