Which example would do that?
I'm on Windows so I'm not certain it's a fair comparison, but if I run where.exe flutter I get back:
PS D:\Dev> where.exe flutter
D:\Dev\Google\Flutter\Flutter main\bin\flutter
D:\Dev\Google\Flutter\Flutter main\bin\flutter.bat
Whereas the desired path would be "D:\Dev\Google\Flutter\Flutter main" (although we also tolerate the trailing bin and trim it).
Regarding the package_config.json inference, yes that's currently what we are relying on, but it's only working for Flutter projects. We have several projects in Dart
Ah, that makes more sense, thank you for the extra context :-)
If you are interested with the idea I'm open to create tests for this, although I would appreciate some guidance on similar tests. I'm not familiar with testing vscode extensions.
If we can make the descriptions on the settings more explicit (what the expected output is, what happens if the command fails, error codes, non-path output) I am happy to accept this. I don't know how simple creating the tests will be, but I'd be happy to create at least some basic tests that could be used as a template to add more coverage (for things like errors, or multiple paths in the output like my where.exe example above).
Thanks!