fix soundEnabled init bug

This commit is contained in:
Justin Quan
2024-12-15 19:47:13 -08:00
parent 7d7a8563b7
commit 63c766f380

View File

@@ -136,6 +136,11 @@ export class ClineProvider implements vscode.WebviewViewProvider {
this.outputChannel.appendLine("Resolving webview view") this.outputChannel.appendLine("Resolving webview view")
this.view = webviewView this.view = webviewView
// Initialize sound enabled state
this.getState().then(({ soundEnabled }) => {
setSoundEnabled(soundEnabled ?? false)
})
webviewView.webview.options = { webviewView.webview.options = {
// Allow scripts in the webview // Allow scripts in the webview
enableScripts: true, enableScripts: true,