From 71f2ccda9a10083f325a436c2bd0fa5c7e54c458 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 5 Nov 2024 16:10:19 -0800 Subject: [PATCH] respect includeUnstaged option --- core/context/providers/DiffContextProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/context/providers/DiffContextProvider.ts b/core/context/providers/DiffContextProvider.ts index ae0eb42b8..f2c95083f 100644 --- a/core/context/providers/DiffContextProvider.ts +++ b/core/context/providers/DiffContextProvider.ts @@ -17,7 +17,7 @@ class DiffContextProvider extends BaseContextProvider { query: string, extras: ContextProviderExtras, ): Promise { - const diff = await extras.ide.getDiff(false); + const diff = await extras.ide.getDiff(this.options.includeUnstaged ?? true); return [ { description: "The current git diff",