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

Breakpoints in Scala sources in VSCode #5910

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

jtulach
Copy link
Contributor

@jtulach jtulach commented May 2, 2023

As you may know I am working on mixed Java+Scala codebase. I have developed a NetBeans .nbm extension as well as .vsix file to support our sbt based projects.

There is a special ToggleScalaBreakpointActionProvider that handles breakpoints in Scala sources. It works great in NetBeans IDE. But I'd like it to work in VSCode as well!

Breakpoint in Scala source

This PR copies the code from ToggleScalaBreakpointActionProvider (the license is Apache and I wrote it, so I can do it) and places it to java.lsp.server. That's not modular at all - but the ActionProvider doesn't seem to be consulted by the java.lsp.server - should that be fixed, I happily host my code in my enso4igv extension.

@entlicher, how do we move foward? There is not much modularity in the java.lsp.server debugger breakpoint support - Java, Groovy, Truffle is all handled at a single place - can we add .scala as well? Or shall we seek a complete refactor and find a way to invoke ActionProvider.toggleBreakpoint action even from VSCode extension?

@jtulach jtulach added the VSCode Extension [ci] enable VSCode Extension tests label May 2, 2023
@jtulach jtulach added this to the NB18 milestone May 2, 2023
@jtulach jtulach requested review from entlicher, dbalek and sdedic May 2, 2023 16:20
@jtulach jtulach self-assigned this May 2, 2023
@neilcsmith-net neilcsmith-net modified the milestones: NB18, NB19 May 2, 2023
@jtulach
Copy link
Contributor Author

jtulach commented Jun 2, 2023

The PHP failure seems unrelated to my changes. Merging.

@jtulach jtulach merged commit d89a420 into apache:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants