Skip to content

Commit 3bba874

Browse files
committed
fix: add includeVSCodeFileContext to webview-ui components
1 parent d68eeb3 commit 3bba874

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

webview-ui/src/context/ExtensionStateContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
202202
customModes: [],
203203
maxOpenTabsContext: 20,
204204
maxWorkspaceFiles: 200,
205+
includeVSCodeFileContext: true,
205206
cwd: "",
206207
browserToolEnabled: true,
207208
telemetrySetting: "unset",

webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ describe("mergeExtensionState", () => {
209209
sharingEnabled: false,
210210
profileThresholds: {},
211211
hasOpenedModeSelector: false, // Add the new required property
212+
includeVSCodeFileContext: true,
212213
}
213214

214215
const prevState: ExtensionState = {

0 commit comments

Comments
 (0)