Repository navigation
Play a sound whenever a breakpoint is hit. - #140044
Conversation
a0f4f34 to
7e6d71d
Compare
Isidor Nikolic (isidorn)
left a comment
There was a problem hiding this comment.
Awesome work!
I have done an initial review. Once you tackle this I can try it out and provide more feedback.
Thanks a lot
| })); | ||
|
|
||
| this.rawListeners.push(this.raw.onDidStop(async event => { | ||
| if (event.body.reason === 'breakpoint') { |
There was a problem hiding this comment.
The current problem with the breakpoints is not that the users are unaware that the breakpoint is hit, but that the breakpoint is on a line.
So the logic should be different.
We need a line change listener, and on each line change to check if a breakpoint is on a line. If it is we play the sound. We will do the same approach with errors.
There was a problem hiding this comment.
I suggest to introduce a new minimalistic WorkbenchContribution just for this
There was a problem hiding this comment.
Ah, I misunderstood the problem. But #135908 is about playing a sound when a breakpoint is hit.
There was a problem hiding this comment.
Henning Dieterichs (@hediet) good point. Yeah I then agree we also want this.
I feel like this is mostly requested by non screen reader users. And what I mention is requested by screen reader users.
So in the end we will need both, and the sound we play for those might be different. Though to start we can play the same sound.
Benjamin Pasero (bpasero)
left a comment
There was a problem hiding this comment.
I believe this would not work from our real builds that use a stripped down version of ffmpeg, i.e. we ship no codecs, Robo (@deepak1556) would know for sure.
I think his comment here means webm should be supported. |
|
I think a service for this is overkill, why not |
|
Yup |
7e6d71d to
fdf9147
Compare
fdf9147 to
675014e
Compare
This PR fixes #135908
Use
"audioNotifications.enabled": trueto enable the feature.Use
"audioNotifications.breakpointHit": falseto enable audio cues for breakpoints.Later TODO's: