Skip to content

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

Merged
merged 5 commits into from
Apr 8, 2019

Conversation

rkeithhill
Copy link
Contributor

@rkeithhill rkeithhill commented Apr 1, 2019

Need to determine if there are other quote scenarios where we could improve auto-completion.

Fixes PowerShell/vscode-powershell#1398

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a 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 😊

@rkeithhill rkeithhill force-pushed the rkeithhill/fix-path-auto-completions branch from 7ff85b9 to 03593cc Compare April 3, 2019 01:47
Copy link
Member

@TylerLeonhardt TylerLeonhardt left a 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 😄

@rkeithhill rkeithhill changed the title WIP: Improve path auto-completion Improve path auto-completion Apr 4, 2019
@rkeithhill
Copy link
Contributor Author

This PR is ready to go.

Copy link
Contributor

@rjmholt rjmholt left a 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 rkeithhill merged commit bfb4e8e into master Apr 8, 2019
@rkeithhill rkeithhill deleted the rkeithhill/fix-path-auto-completions branch April 8, 2019 21:08
@TylerLeonhardt
Copy link
Member

@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!

@rkeithhill
Copy link
Contributor Author

I'll backport it. I'd really like to have this in the next update.

rkeithhill added a commit to rkeithhill/PowerShellEditorServices that referenced this pull request Apr 10, 2019
* 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
rkeithhill added a commit that referenced this pull request Apr 10, 2019
* 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
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