From e50988ac0eeb09d784ce438e57c7c5eb90da742d Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 29 Aug 2024 15:58:54 -0700 Subject: [PATCH] better error --- extensions/vscode/src/commands.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 58613ac44..979c782b0 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -517,6 +517,10 @@ const commandsMap: ( firstUri: vscode.Uri, uris: vscode.Uri[], ) => { + if (uris === undefined) { + throw new Error("No files were selected"); + } + vscode.commands.executeCommand("continue.continueGUIView.focus"); for (const uri of uris) {