-
Notifications
You must be signed in to change notification settings - Fork 13
Add "Move to Line" and related actions to debugger context menu #368
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
Conversation
Dear @travkin79 From PR code it is not pretty obvious what exactly you need from internal CDT types.
Do you mean you have warnings? If so, I would start from PR variant with warnings so we can see what exactly is needed to be more open from main CDT codebase. |
@travkin79 can you please add a screenshot of the "Move to line" context menu entry. I am not sure where to find "Move to line" in the old C/C++ Editor. |
I found it! |
I don't see how to avoid the discouraged access issues yet. IMO they are okay for now. We have a lot of discouraged access issues with LSP4E as well, since there is still no stable API. |
Hello @ruspl-afed and @ghentschke, If we can live with these, it's ok for me for now. Avoiding them would likely require to make some types from CDT public API. I'm not sure if that's desired. |
It depends on concrete type and use case. Since CDT LSP most probably will be a part of CDT repository I don't see a problem. In any case, referring to internal CDT types from CDT LSP is much better than creating copies of them. |
I didn't expect that. Then I'll go on working on my PR and we'll discuss if the needed types / methods from CDT can be made public or if we can live with the discouraged access warnings, ok?
I fully agree. |
I checked which types and operations I need in CDT LSP to implement actions like "Move to line", "Run to line", and "Resume at line". It seems that I only need some types from
If discouraged access is not a big problem, I'd prefer to use all the needed classes / operations from CDT instead of copying them to CDT LSP. It seems, we already have a dependency to I think, it's best to adapt my PR accordingly and see if that works for us. |
89a24db
to
914ab03
Compare
4.33 I builds are no longer available.
Hi @ruspl-afed and @ghentschke, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@travkin79 Thank you! |
Hi @ghentschke and @jonahgraham,
I'm experimenting with implementing an action "Move to line" similar to CDT (and hope to add other similar actions, too), but I face a few discouraged access issues, since the implementation requires to access some internal classes / interfaces from CDT.
Do you have any ideas how that should be solved in this case? Make some types in CDT public API or find some other way to implement that? (See my PR's code for more details.)
In my PR draft, I copied a few classes and methods from CDT. That's also something, I'd prefer to avoid, but I don't see how.