Skip to content

Commit 24d396e

Browse files
nturinskiCopilot
andauthored
Update src/debug/FunctionHostDebugView.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent db407f4 commit 24d396e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/debug/FunctionHostDebugView.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ export class FuncHostDebugViewProvider implements vscode.TreeDataProvider<FuncHo
9292
return getHostErrorTreeItem(element);
9393
case 'hostTask':
9494
return getHostTaskTreeItem(element);
95-
default:
96-
// Exhaustive check
97-
return getNoHostTreeItem();
95+
default: {
96+
// Exhaustive check: if we reach here, the FuncHostDebugNode union is out of sync with this switch.
97+
const _exhaustiveCheck: never = element;
98+
throw new Error(`Unexpected FuncHostDebugNode kind: ${(element as { kind?: unknown }).kind}`);
99+
}
98100
}
99101
}
100102

0 commit comments

Comments
 (0)