-
Notifications
You must be signed in to change notification settings - Fork 234
Improve path auto-completion #902
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good @rkeithhill assuming I understand what's going on. We can always add more to it later but this does fix an issue that doesn't happen in the ISE.
P.S. there is a testing opportunity here for the CreateCompletionItem
method 😊
src/PowerShellEditorServices.Protocol/LanguageServer/Completion.cs
Outdated
Show resolved
Hide resolved
7ff85b9
to
03593cc
Compare
src/PowerShellEditorServices.Protocol/LanguageServer/Completion.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM unless you wanted to add some tests to make sure the $0 shows up in the right place when it needs to 😄
This PR is ready to go. |
test/PowerShellEditorServices.Test.Host/TestFiles/CompleteFunctionName.ps1
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing!
@rkeithhill I think @rjmholt and I have decided that we, personally, will not spend the time to backport this, but if you'd like to do it, we would accept it! |
I'll backport it. I'd really like to have this in the next update. |
* WIP: Improve path auto-completion * Add comment to address PR feedback * Address PR feedback * Add tests for path completion, do not do snippet completion on files * Fix incorrect macOS/Linxu path in completion test
Need to determine if there are other quote scenarios where we could improve auto-completion.
Fixes PowerShell/vscode-powershell#1398