-
Notifications
You must be signed in to change notification settings - Fork 12
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
Basic support of toggle line breakpoints in C/C++ Editor (LSP) #46
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To enable C/C++ breakpoints in the LSP based C/C++ editor, this fix is needed in // Test for LSP based C/C++ Editor
} else if ("isCEditorSupportsCBreakpoint".equals(property) && (receiver instanceof TextEditor)) { //$NON-NLS-1$
var editor = (TextEditor) receiver;
if (editor.getEditorSite() == null || !editor.getEditorSite().getId().equals("org.eclipse.cdt.lsp.CEditor")) //$NON-NLS-1$
return false;
if (!CDebugUtils.isCustomToggleBreakpointFactory())
return true;
} |
I have seen the request for review, I'm out of office until Thursday.
…On Mon, Apr 17, 2023, 10:36 a.m. Gesa Hentschke ***@***.***> wrote:
@ghentschke <https://github.com/ghentschke> requested your review on: #46
<#46>
Support toggle breakpoints in C/C++ Editor (LSP).
—
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFF2RARBHLK6OZPDWOZUKDXBVINVANCNFSM6AAAAAAXBHC62A>
.
You are receiving this because your review was requested.Message ID:
<Bachmann-electronic-GmbH/eclipse-cdt-lsp/pull/46/issue_event/9025433342@
github.com>
|
jonahgraham
added a commit
to eclipse-cdt/cdt
that referenced
this pull request
Apr 25, 2023
This is an example of where we have somewhat an inversion of dependencies. The existing CDT code assumes it knows about all types of editors at compile time. In this case the LSP C Editor is a new type. However, rather than creating a new extension mechanism here we are simply adding the LSP C Editor to the known list as the LSP C Editor is (or will soon be) part of CDT itself anyway (see #354) By itself this change doesn't do anything, it needs the change in eclipse-cdt/cdt-lsp#46 Also-by: Gesa HENTSCHKE <Gesa.HENTSCHKE@bachmann.info>
This was referenced Apr 25, 2023
jonahgraham
approved these changes
Apr 25, 2023
In progress on eclipse-cdt/cdt#384 |
jonahgraham
added a commit
to eclipse-cdt/cdt
that referenced
this pull request
Apr 27, 2023
This is an example of where we have somewhat an inversion of dependencies. The existing CDT code assumes it knows about all types of editors at compile time. In this case the LSP C Editor is a new type. However, rather than creating a new extension mechanism here we are simply adding the LSP C Editor to the known list as the LSP C Editor is (or will soon be) part of CDT itself anyway (see #354) By itself this change doesn't do anything, it needs the change in eclipse-cdt/cdt-lsp#46 Also-by: Gesa HENTSCHKE <Gesa.HENTSCHKE@bachmann.info>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements #45