From 45f7e4b157dc815dcd2e91c0cd88ad0869ab883d Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 12 May 2025 16:48:27 -0700 Subject: [PATCH] minor updates --- src/vs/workbench/contrib/void/browser/sidebarActions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/sidebarActions.ts b/src/vs/workbench/contrib/void/browser/sidebarActions.ts index a2db29ea..4112745c 100644 --- a/src/vs/workbench/contrib/void/browser/sidebarActions.ts +++ b/src/vs/workbench/contrib/void/browser/sidebarActions.ts @@ -98,20 +98,20 @@ registerAction2(class extends Action2 { metricsService.capture('Ctrl+L', {}) - // Capture selection and model BEFORE opening the chat panel + // capture selection and model before opening the chat panel const editor = editorService.getActiveCodeEditor() const model = editor?.getModel() if (!model) return const selectionRange = roundRangeToLines(editor?.getSelection(), { emptySelectionBehavior: 'null' }) - // Now check if panel is open and open it if needed + // open panel const wasAlreadyOpen = viewsService.isViewContainerVisible(VOID_VIEW_CONTAINER_ID) if (!wasAlreadyOpen) { await commandService.executeCommand(VOID_OPEN_SIDEBAR_ACTION_ID) } - // Add selection to chat (whether it was already open or we just opened it) + // Add selection to chat // add line selection if (selectionRange) { editor?.setSelection({