Powershell intellisense doesn't complete previous multiline commands

Open
#4,474 2 comments 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
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell
Domain
cli

Research direction

Reproduce the issue in PSReadLine with PowerShell 7.5.0 on Windows using the multiline echo command shown in the report, then trace the handling of the previous-command completion. Done means the prior multiline command is restored when completion is requested instead of producing no output.

Written by the indexing model from the issue text.

Description

Needs-Triage :mag:
Prerequisites
Steps to reproduce
echo '1
2
3'

echo '      # psreadline doesn't fill in previous command
Expected behavior
# Should fill in previous command.
Actual behavior
# Nothing happens.
Error details

Environment data
Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Visuals

No response

Dominant language
C#
Stars
4.4k
Forks
341
PR merge metrics
No merged PRs in 30d

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/PSReadLine

All issues in PowerShell/PSReadLine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.