Shopify / ruby-lsp

An opinionated language server for Ruby
https://shopify.github.io/ruby-lsp/
MIT License
1.51k stars 143 forks source link

Make test code lens pick up launch configurations #1793

Open st0012 opened 1 year ago

st0012 commented 1 year ago

With Shopify/vscode-ruby-lsp#631, users can now specify env var in their launch configurations. And we should explore a way to let our code lens actions pick up those configurations as well.

I'm thinking something like:

(The example and group concept is borrowed from https://github.com/Shopify/ruby-lsp/pull/734)

It feels pretty hacky so we should also check if and how other LSP servers resolve this.

andyw8 commented 1 year ago

Seems a reasonable approach 👍

st0012 commented 1 year ago

It looks like vscode-java-test (maintained by MS) provides specific configuration (java.test.config) for custom code lens config (link), and then render code lens based on the configurations.

Dart's code lens also allows users to customise custom code lens items and render them dynamically.

We should prioritise such design because running debug code lens in apps that use Spring (e.g. Core) requires DISABLE_SPRING=1 to properly trigger breakpoints.