Skip to content

Improve path auto-completion - #902

Merged
Keith Hill (rkeithhill) merged 5 commits into
masterfrom
rkeithhill/fix-path-auto-completions
Apr 8, 2019
Merged

Improve path auto-completion#902
Keith Hill (rkeithhill) merged 5 commits into
masterfrom
rkeithhill/fix-path-auto-completions

Conversation

@rkeithhill

@rkeithhill Keith Hill (rkeithhill) commented Apr 1, 2019

Copy link
Copy Markdown
Contributor

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

Fixes PowerShell/vscode-powershell#1398

@TylerLeonhardt TylerLeonhardt 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.

This looks good Keith Hill (@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 😊

Comment thread src/PowerShellEditorServices.Protocol/LanguageServer/Completion.cs Outdated
Comment thread src/PowerShellEditorServices.Protocol/LanguageServer/Completion.cs
Comment thread src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs
@rkeithhill
Keith Hill (rkeithhill) force-pushed the rkeithhill/fix-path-auto-completions branch from 7ff85b9 to 03593cc Compare April 3, 2019 01:47
Comment thread src/PowerShellEditorServices.Protocol/LanguageServer/Completion.cs Outdated

@TylerLeonhardt TylerLeonhardt 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 unless you wanted to add some tests to make sure the $0 shows up in the right place when it needs to 😄

@rkeithhill Keith Hill (rkeithhill) changed the title WIP: Improve path auto-completion Apr 4, 2019
@rkeithhill

Copy link
Copy Markdown
Contributor Author

This PR is ready to go.

Comment thread test/PowerShellEditorServices.Test.Host/LanguageServerTests.cs Outdated

@rjmholt Rob Holt (rjmholt) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is amazing!

@rkeithhill
Keith Hill (rkeithhill) merged commit bfb4e8e into master Apr 8, 2019
@rkeithhill
Keith Hill (rkeithhill) deleted the rkeithhill/fix-path-auto-completions branch April 8, 2019 21:08
@TylerLeonhardt

Copy link
Copy Markdown
Member

Keith Hill (@rkeithhill) I think Rob Holt (@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
Copy Markdown
Contributor Author

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

Keith Hill (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
Keith Hill (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

3 participants