From 90bf3a90befb71619c753ffa710f3c9e6a7222bb Mon Sep 17 00:00:00 2001 From: Dustin Date: Thu, 12 Feb 2026 21:14:23 -0600 Subject: [PATCH 1/2] Added gitignore for visual studio extensions --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index fdf4f5a..82ad7c2 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ data.json # Exclude macOS Finder (System Explorer) View States .DS_Store +/.vs From b49ed9d86c9fb817e52ae4fd7cea3cde8bf37312 Mon Sep 17 00:00:00 2001 From: Dustin Date: Thu, 12 Feb 2026 21:20:02 -0600 Subject: [PATCH 2/2] Changed so that when no text is selected the the whole document is selected --- src/modules/WidgetExtension.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/WidgetExtension.ts b/src/modules/WidgetExtension.ts index 879ed9a..7a59222 100644 --- a/src/modules/WidgetExtension.ts +++ b/src/modules/WidgetExtension.ts @@ -389,8 +389,12 @@ class FloatingWidget extends WidgetType { return; } - // Grab the selected text from the stored selection info - const selectedText = this.selectionInfo?.text ?? ""; + // Grab the selected text from the stored selection info. + // If nothing was selected, use the entire document as context. + let selectedText = this.selectionInfo?.text ?? ""; + if (!selectedText && this.outerEditorView) { + selectedText = this.outerEditorView.state.doc.toString(); + } // Show loader this.toggleLoading(true);