diff --git a/vscode/src/commands/context/open-tabs.ts b/vscode/src/commands/context/open-tabs.ts index f48b52983e42..a6d1f0d0c3bb 100644 --- a/vscode/src/commands/context/open-tabs.ts +++ b/vscode/src/commands/context/open-tabs.ts @@ -14,7 +14,7 @@ export async function getContextFileFromTabs(): Promise { // Get open tabs from the current editor const tabGroups = vscode.window.tabGroups.all const openTabs = tabGroups.flatMap(group => - group.tabs.map(tab => tab.input) + group.tabs.map(tab => tab.input).filter(Boolean) ) as vscode.TabInputText[] return (