nushell / vscode-nushell-lang

A Nushell grammar for Visual Studio Code with IDE support
https://www.nushell.sh/
MIT License
121 stars 27 forks source link

Path completion replaces last portion of path instead of entire path #185

Closed ajhall closed 5 months ago

ajhall commented 5 months ago

When I type a partial path, I get a list of paths in the autocomplete popup: image

But when I press tab or enter to accept the completion, it leaves the partially-typed path except for the last portion, which it replaces with the autocomplete entry: image

In this example I expected to type k8s/_cluster/ClusterRol tab and have it autocomplete to k8s/_cluster/ClusterRole/, but it completed to k8s/_cluster/k8s/_cluster/ClusterRole/ instead.

fdncred commented 5 months ago

Thanks for catching this. We'd accept a PR to fix it.

ajhall commented 5 months ago

Yep, I'll try to contribute if I find the time!