-
Notifications
You must be signed in to change notification settings - Fork 385
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
ICompletionSource for file paths? #1697
Comments
There isn't one currently because typically the shell will fall back to file completion if the shim doesn't receive any completions from the .NET tool. There's been some discussion of providing specialized file completions, e.g. suggesting files that match a specific file extension, possibly recursively. |
The trouble I'm having is the shell (powershell) doesn't fill in file paths at all at the expected times. Given what you say, maybe that means that dotnet-suggest offers completions where perhaps it shouldn't. Check out how in the animated gif below, the usage doc describes paths coming before options. Yet when I press tab, only options are listed. Even if I start to type a path and press tab, it'll be replaced by an option with a similar prefix instead of the file path I was typing. This happens a lot and seriously undermines the value of dotnet-suggest (which is a great idea). Can we perhaps only have it offer option completions when file paths are not expected, or perhaps when the user has already typed a hyphen? |
I think I see what's happening. At the position where you're asking for completions, the option tokens are valid, so Tangential observation: The fact that the synopsis shows the arguments ( |
As you're testing changes here, please also try with |
A tool that accepts directory or file paths as arguments gets unhelpful completions suggested, as the user only gets other options -- never files. Is there a file path implementation of
ICompletionSource
anywhere?The text was updated successfully, but these errors were encountered: