Skip to content

Commit

Permalink
add lixFs feature flag
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
janfjohannes committed Mar 20, 2024
1 parent cb9f358 commit 037700b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lix/source-code/client/src/openRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const {

// TODO: rename to debug?
const verbose = false
const experimentalLixFs = false

// TODO addd tests for whitelist

Expand Down Expand Up @@ -238,6 +239,11 @@ export async function openRepository(
description: "app",
intercept: delayedAction,
}),
fs: experimentalLixFs ? {
read(path: string) {
return nodeishFs.readFile(path, { encoding: "utf-8" })
},
} : undefined,

/**
* Gets the git origin url of the current repository.
Expand Down

0 comments on commit 037700b

Please sign in to comment.