-
Notifications
You must be signed in to change notification settings - Fork 837
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
Context-specific RunConfigurations/tasks #944
Comments
Yeah, right now the stable version of the Dart extension is not using LSP so this is handled on the client. However I do have a WIP LSP branch, and this is again being handled on the client (we use custom LSP notifications to get the required info for the client to build the code-lens, and then start debug sessions with the right arguments). For Dart, we're using real debug sessions (with a DAP debug adapter) and not just spawning processes (like tasks) though, so if the above is geared around tasks/running processes, it might not help here (though I'd be curious what |
Yep, that's precisely why we need |
Would someone be willing to work on a proposal including an implementation for VS Code ? |
I personally won't be actively pushing this forward in the nearest future. However, I am interested in this feature, so I eventually I'd probably do it, if no one beats me to it. |
Our current semi-general version is documented here: |
The feature has not gain any traction in the community. I therefore close the issue. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
I think the feature here needs support from both LSP and DAP. It's up to LSP to say "at the current currsor position, there's a fucntion Given a test function, figuring out the appropriate build command to run it is indeed something which DAP can handle. |
On of the important features a language server can provide is an ability to run a one specific tests:
At the moment, VS Code has a way to query for workspace tasks via task provider, but it can't query context specific tasks.
Ie, what additional capability the language server has is that it can noticed that a function at the cursor has a specific annotation, which means that it is a test, which needs to be run in a specific way.
Currently, various extensions hack this functionality (like the above lens from rust-analyzer), but it would be cool if this was a "standardized" request.
Some considerations:
{ "runner_id": string, args: any }
. The simple "process" runner can be build-in of course.id
field to compare different configurations.cargo test -- $test_name
command line, but the user might want to add extra arguments, likecargo test --target target_triple -- $test_name
to each generated configuration. A natural UI here is to let the users specify a template configuration, which is cloned and extended by the server.The sketch of the API would look like this:
cc @DanTup I think Dart server has something for running things in the specific context?
The text was updated successfully, but these errors were encountered: