Skip to content

Commit 7099a99

Browse files
authored
feat: remove experimental flag (#105)
1 parent 6379023 commit 7099a99

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

extension/src/fetch.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function fetchLatest() {
2121
}}`
2222

2323
const config = JSON.parse(json) || {}
24-
return config['explorer.experimental.fileNesting.patterns']
24+
return config['explorer.fileNesting.patterns']
2525
}
2626

2727
export async function fetchAndUpdate(ctx: ExtensionContext, prompt = true) {
@@ -41,10 +41,10 @@ export async function fetchAndUpdate(ctx: ExtensionContext, prompt = true) {
4141

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

update.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ fs.writeFileSync('README.md',
354354
\`\`\`jsonc
355355
// updated ${today}
356356
// https://github.com/antfu/vscode-file-nesting-config
357-
"explorer.experimental.fileNesting.enabled": true,
358-
"explorer.experimental.fileNesting.expand": false,
359-
"explorer.experimental.fileNesting.patterns": ${body.trimStart()},
357+
"explorer.fileNesting.enabled": true,
358+
"explorer.fileNesting.expand": false,
359+
"explorer.fileNesting.patterns": ${body.trimStart()},
360360
\`\`\``.trim()
361361
})
362362
,

0 commit comments

Comments
 (0)