Skip to content

Commit 8117308

Browse files
committed
fix: cast message.values to string[] for diagnosticsFilter
1 parent 6ab504a commit 8117308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ export const webviewMessageHandler = async (
10041004
await provider.postStateToWebview()
10051005
break
10061006
case "diagnosticsFilter":
1007-
await updateGlobalState("diagnosticsFilter", message.values ?? ["error", "warning"])
1007+
await updateGlobalState("diagnosticsFilter", (message.values as string[]) ?? ["error", "warning"])
10081008
await provider.postStateToWebview()
10091009
break
10101010
case "setHistoryPreviewCollapsed": // Add the new case handler

0 commit comments

Comments
 (0)