Skip to content
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

feature: Also run plain Java when noDebug from launch.json #1521

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Jul 22, 2024

Previously, if user run code from code lenses they would get a java command running without DAP. However, if they wanted to add parameters and run via launch.json they would run it via DAP.

Now, even if running from configuration we will run with simple java command. One issue here is that we need to start debugger anyway of run via launch.json, but I worked around it by just running echo instead.

Needs scalameta/metals#6306

Previously, if user run code from code lenses they would get a java command running without DAP. However, if they wanted to add parameters and run via launch.json they would run it via DAP.

Now, even if running from configuration we will run with simple java command. One issue here is that we need to start debugger anyway of run via launch.json, but I worked around it by just running echo instead.
@tgodzik tgodzik requested a review from kasiaMarek July 22, 2024 14:13
@tgodzik tgodzik marked this pull request as ready for review July 25, 2024 13:30
@tgodzik
Copy link
Contributor Author

tgodzik commented Jul 29, 2024

This should be good to review now.

@kasiaMarek
Copy link
Contributor

kasiaMarek commented Jul 29, 2024

But scalameta/metals#6306 was merged after the release. Or do you mean just so it's reviewed?

@tgodzik
Copy link
Contributor Author

tgodzik commented Jul 29, 2024

I just meant if you could take a look at it, no pressure. Will include it in the next release.

@tgodzik tgodzik merged commit 1a5aec6 into scalameta:main Aug 2, 2024
10 checks passed
@tgodzik tgodzik deleted the discover-config branch August 2, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants