Skip to content

Commit d927fda

Browse files
authored
fix: avoid force enabling explorer fileNesting config (#139)
1 parent 1dfc649 commit d927fda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extension/src/fetch.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ export async function fetchAndUpdate(ctx: ExtensionContext, prompt = true) {
4141

4242
if (shouldUpdate) {
4343
const config = workspace.getConfiguration()
44-
config.update('explorer.fileNesting.enabled', true, true)
44+
45+
if (config.inspect('explorer.fileNesting.enabled').globalValue == null)
46+
config.update('explorer.fileNesting.enabled', true, true)
47+
4548
if (config.inspect('explorer.fileNesting.expand').globalValue == null)
4649
config.update('explorer.fileNesting.expand', false, true)
50+
4751
config.update('explorer.fileNesting.patterns', {
4852
'//': `Last update at ${new Date().toLocaleString()}`,
4953
...patterns,

0 commit comments

Comments
 (0)