Change:
<!-- Do Not Delete This! bugreporttemplate --<!-- Please read our Rules of Conduct: --<!-- Read our guide about submitting issues: --<!-- Search existing issues to avoid creating duplicates. --<!-- Test using the latest Insiders build to see if your issue has already been fixed: --<!-- Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. --<!-- Launch with to check. --Does this issue occur when all extensions are disabled?: Yes <!-- If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. --<!-- Issues caused by an extension need to be reported directly to the extension publisher. The 'Help Report Issue' dialog can assist with this. --- VS Code Version: 1.7.2 OS Version: windows Steps to Reproduce: a file with error on `cue: line has an error" settings the cursor to there
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.73.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding!
it still occurs with 1.73.1
yeah I can reproduce this issue. is this expected?
This is not expected. Sounds should be played when cursor is navigated to the error line. worked on this initially and might have more details
I also have the same problem, but this only occurs in the insider version, I have the latest version and no sound is played Issue:
They play in OSS, but not insider's. any idea why that would be?
if that is the case then it is probably related to code bundling. Does that sound play when you F1 list audio cues?
It does play when I list audio cues in both OSS and insider's.
It also plays for terminal quick fixes - suggesting there's a bug in because I can also repro it not playing for other line feature types
This has been working for me lately, though it was definitely broken at one pt.
I have set to I navigate to a line with an error-squiggle but there is no sound being played

Discussion:
*  Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ <del> import { raceTimeout } from 'vs/base/common/async'; </del> import { Disposable } from 'vs/base/common/lifecycle'; import { FileAccess } from 'vs/base/common/network'; import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility';

return Math.max(Math.min(volume, 100), 0); } <del> private playingSounds = new Set<Sound>(); </del> <ins> private readonly playingSounds = new Set<Sound>(); </ins> public async playSound(sound: Sound, allowManyInParallel = false): Promise<void> { if (!allowManyInParallel && this.playingSounds.has(sound)) {

} this.playingSounds.add(sound); const url = FileAccess.asBrowserUri( `vs/platform/audioCues/browser/media/${sound.fileName}` ).toString(); <del> const audio = new Audio(url); audio.volume = this.getVolumeInPercent() / 100; audio.addEventListener('ended', () => { this.playingSounds.delete(sound); }); </del> try { <del> try { // Don't play when loading takes more than 1s, due to loading, decoding or playing issues. // Delayed sounds are very confusing. await raceTimeout(audio.play(), 1000); } catch (e) { console.error('Error while playing sound', e); } </del> <ins> await playAudio(url, this.getVolumeInPercent() / 100); } catch (e) { console.error('Error while playing sound', e); </ins> } finally { <del> audio.remove(); </del> <ins> this.playingSounds.delete(sound); </ins> } }

} } <ins> /** * Play the given audio url. * @volume value between 0 and 1 */ function playAudio(url: string, volume: number): Promise<void> { return new Promise((resolve, reject) => { const audio = new Audio(url); audio.volume = volume; audio.addEventListener('ended', () => { resolve(); }); audio.addEventListener('error', (e) => { // When the error event fires, ended might not be called reject(e.error); }); audio.play().catch(e => { // When play fails, the error event is not fired. reject(e); }); }); } </ins> function eventFromObservable(observable: IObservable<any>): Event<void> { return (listener) => { let count = 0;