We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db407f4 commit 24d396eCopy full SHA for 24d396e
src/debug/FunctionHostDebugView.ts
@@ -92,9 +92,11 @@ export class FuncHostDebugViewProvider implements vscode.TreeDataProvider<FuncHo
92
return getHostErrorTreeItem(element);
93
case 'hostTask':
94
return getHostTaskTreeItem(element);
95
- default:
96
- // Exhaustive check
97
- return getNoHostTreeItem();
+ default: {
+ // Exhaustive check: if we reach here, the FuncHostDebugNode union is out of sync with this switch.
+ const _exhaustiveCheck: never = element;
98
+ throw new Error(`Unexpected FuncHostDebugNode kind: ${(element as { kind?: unknown }).kind}`);
99
+ }
100
}
101
102
0 commit comments