Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
daxian-dbw merged 2 commits into
PowerShell:masterPowerShell/PSReadLine:masterfrom
daxian-dbw:pathdaxian-dbw/PSReadLine:pathCopy head branch name to clipboard
Mar 29, 2023
Merged

Set the current location in PredictionClient when it's supported#3639
daxian-dbw merged 2 commits into
PowerShell:masterPowerShell/PSReadLine:masterfrom
daxian-dbw:pathdaxian-dbw/PSReadLine:pathCopy head branch name to clipboard

Conversation

@daxian-dbw

@daxian-dbw 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

@andyleejordan andyleejordan left a comment

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

@SeeminglyScience SeeminglyScience left a comment

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 daxian-dbw merged commit d6efcab into PowerShell:master Mar 29, 2023
@daxian-dbw daxian-dbw deleted the path branch April 4, 2023 05:07
@ghost

ghost commented May 3, 2023

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.