Skip to content

Commit

Permalink
Revert refactor and improve behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
MonadChains committed Nov 10, 2022
1 parent 7ce375a commit 7ad0f0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -109,7 +109,7 @@ export class NotebookExecutionStateService extends Disposable implements INotebo
if (lastRunSuccess !== undefined) {
const audioCuesEnabled = this._configurationService.getValue<boolean>(NotebookSetting.audioCuesEnabled);
if (lastRunSuccess) {
if (audioCuesEnabled) {
if (audioCuesEnabled && this._executions.size === 0) {
this._audioCueService.playAudioCue(AudioCue.taskCompleted);
}
this._clearLastFailedCell(notebookUri);
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/notebook/common/notebookCommon.ts
Expand Up @@ -926,7 +926,7 @@ export const NotebookSetting = {
outputLineHeight: 'notebook.outputLineHeight',
outputFontSize: 'notebook.outputFontSize',
outputFontFamily: 'notebook.outputFontFamily',
audioCuesEnabled: 'notebook.audioCuesEnabled'
audioCuesEnabled: 'notebook.audioCues.enabled'
} as const;

export const enum CellStatusbarAlignment {
Expand Down

0 comments on commit 7ad0f0c

Please sign in to comment.