-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable completion of scoped variables without specifying scope #20340
base: master
Are you sure you want to change the base?
Enable completion of scoped variables without specifying scope #20340
Conversation
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
I'm not sure it's unequivocally useful and/or convenient. It's better to discuss it in a new issue and get WG's opinion.
That seems like an oversight. It would have been handy to have. If you put this in a separate PR then I will review it. |
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Variable completion includes variables from the session state so if you declare a global variable: |
PR Summary
Changes how completion of variables with scopes are handled, so variables like:
$Global:TestVar = "Hello"
can be completed without specifying the scope like this:TestVar<Tab>
.Also enabled completion of variables with the
using
scope so this:$TestVar="Hello";$using:Tes<Tab>
completes the variable.PR Context
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).