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

refact: enable NonNullByDefault for lsp4e.debug and lsp4e.jdt plugins #1060

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented Aug 15, 2024

No description provided.

@sebthom
Copy link
Member Author

sebthom commented Aug 15, 2024

As part of this PR I had to copy parts of the org.eclipse.lsp4e.internal.NullSafetyHelper (located in the lsp4e plugin) to the lsp4e.debug plugin.
Copying code like this has been done before too: org.eclipse.lsp4e.debug.breakpoints.DocumentUtils only contains code copied from org.eclipse.lsp4e.LSPEclipseUtils.

@mickaelistria is there any real-world practical reason why lsp4e.debug should not depend on the lsp4e plugin to reuse these classes?

@mickaelistria
Copy link
Contributor

is there any real-world practical reason why lsp4e.debug should not depend on the lsp4e plugin to reuse these classes?

IIRC, at the beginning, the goal was to get the Debug Adapter working for CDT without having LSP-based edition installed. It's the only case I'm aware of and I don't know if this still stands. @jonahgraham may know better.

@rubenporras rubenporras merged commit db3d7a2 into eclipse:main Aug 16, 2024
6 checks passed
@sebthom
Copy link
Member Author

sebthom commented Aug 16, 2024

@rubenporras thanks for the quick review!

@jonahgraham
Copy link
Contributor

IIRC, at the beginning, the goal was to get the Debug Adapter working for CDT without having LSP-based edition installed. It's the only case I'm aware of and I don't know if this still stands. @jonahgraham may know better.

Going forward there is no reason to keep them separate. CDT is moving to use LSP (https://github.com/eclipse-cdt/cdt-lsp) and there probably isn't an install anywhere that has lsp4e.debug and not main lsp4e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants