Skip to content

Set the current location in PredictionClient when it's supported - #3639

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
daxian-dbw:path
Mar 29, 2023
Merged

Set the current location in PredictionClient when it's supported#3639
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
daxian-dbw:path

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented Mar 27, 2023

Copy link
Copy Markdown
Member

PR Summary

Set the current location in PredictionClient when it's supported.
This is in accordance with PowerShell/PowerShell#19414, which adds the property CurrentLocation to PredictionClient, so as to make it easy for a predictor implementation to know the current location.

PR Checklist

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • Make sure you've added one or more new tests
  • Make sure you've tested these changes in terminals that PowerShell is commonly used in (i.e. conhost.exe, Windows Terminal, Visual Studio Code Integrated Terminal, etc.)
  • User-facing changes
    • Not Applicable
    • OR
    • Documentation needed at PowerShell-Docs
      • Doc Issue filed:
Microsoft Reviewers: Open in CodeFlow

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long my reflection understanding is right.

Comment thread PSReadLine/Prediction.cs
Comment thread PSReadLine/Prediction.cs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@daxian-dbw

Copy link
Copy Markdown
Member Author

Thank both of you for the review!

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit d6efcab into PowerShell:master Mar 29, 2023
@ghost

Copy link
Copy Markdown

🎉 v2.3.1-beta1 has been released which incorporates this pull request. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants