-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Use Named Listeners in DebugSession
#8616
Use Named Listeners in DebugSession
#8616
Conversation
@@ -759,4 +741,27 @@ export class DebugSession implements CompositeTreeElement { | |||
return this.threads; | |||
} | |||
|
|||
protected handleContinued = ({ body: { allThreadsContinued, threadId } }: DebugProtocol.ContinuedEvent): void => { |
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.
From here:
only that good practice that doesn't hurt anything upstream
Let's make it return with Promise<void>
so downstreams have greater flexibility on the code customization. Same for handleThread
. What do you think?
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.
Sounds fair to me - I'll make the change.
Signed-off-by: Colin Grant <colin.grant@ericsson.com>
97b34e9
to
e99cd03
Compare
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.
I have not tried, but code wise looks good.
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.
The changes look good to me, I verified if there were any regressions when starting a debug session (ex: run mocha tests
). The debug session actions successfully worked (ex: paused, started, stopped, step over, step into...).
@colin-grant-work would you like to merge, I believe you have the proper permissions now :) |
@marcdumais-work I merged for Colin as I believe he did not have the proper permissions yet to do so despite now being a committer, is there some sync we need to perform on the repo rights? |
Hi, @colin-grant-work @kenneth-marut-work @Anasshahidd21 I think you may all be in the same situation. I see none of you listed as members of the
Please confirm that |
Signed-off-by: Colin Grant colin.grant@ericsson.com
What it does
This PR addresses #8614 with respect to the
DebugSession
by extracting the larger anonymous functions and assigning them to member variables. At present, it would be necessary to override the whole constructor to change any individual listener, and that makes it more difficult for adopters to keep in synch with changes upstream.Pros:
Cons:
How to test
It should have no effect on application behavior.
Review checklist
Reminder for reviewers