Skip to content

Commit dfeb14f

Browse files
committed
add default exclude for non-VSCode
#1872
1 parent 89d61ff commit dfeb14f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

script/config/template.lua

+9-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,15 @@ local template = {
395395

396396
-- VSCode
397397
['files.associations'] = Type.Hash(Type.String, Type.String),
398-
['files.exclude'] = Type.Hash(Type.String, Type.Boolean),
398+
-- copy from VSCode default
399+
['files.exclude'] = Type.Hash(Type.String, Type.Boolean) << {
400+
["**/.DS_Store"] = true,
401+
["**/.git"] = true,
402+
["**/.hg"] = true,
403+
["**/.svn"] = true,
404+
["**/CVS"] = true,
405+
["**/Thumbs.db"] = true
406+
},
399407
['editor.semanticHighlighting.enabled'] = Type.Or(Type.Boolean, Type.String),
400408
['editor.acceptSuggestionOnEnter'] = Type.String >> 'on',
401409
}

0 commit comments

Comments
 (0)