Skip to content

Commit 9e2e714

Browse files
authored
fix(settings): respect existing value for "fileNesting.expand" if present (#75)
1 parent 518506d commit 9e2e714

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/src/fetch.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export async function fetchAndUpdate(ctx: ExtensionContext, prompt = true) {
3838
if (shouldUpdate) {
3939
const config = workspace.getConfiguration()
4040
config.update('explorer.experimental.fileNesting.enabled', true, true)
41-
config.update('explorer.experimental.fileNesting.expand', false, true)
41+
if(config.inspect('explorer.experimental.fileNesting.expand').globalValue === undefined) {
42+
config.update('explorer.experimental.fileNesting.expand', false, true)
43+
}
4244
config.update('explorer.experimental.fileNesting.patterns', {
4345
'//': `Last update at ${new Date().toLocaleString()}`,
4446
...patterns,

0 commit comments

Comments
 (0)