File tree Expand file tree Collapse file tree 5 files changed +22
-28
lines changed Expand file tree Collapse file tree 5 files changed +22
-28
lines changed Original file line number Diff line number Diff line change 8
8
.gitignore
9
9
tsconfig.json
10
10
vsc-extension-quickstart.md
11
- Dockerfile
12
- docker-compose.yml
13
11
.nvmrc
14
- tslint.json
Original file line number Diff line number Diff line change
1
+ # 1.5.0
2
+
3
+ ## What's New
4
+ * Added ` advancedNewFile.useFilesExclude ` configuration option to select whether
5
+ to use the contents of the ` files.exclude ` setting or not when deciding which
6
+ folders to show or not.
7
+
1
8
# 1.4.0
2
9
3
10
## What's New
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -64,18 +64,24 @@ function gitignoreGlobs(root: string): string[] {
64
64
}
65
65
66
66
function configIgnoredGlobs ( root : string ) : string [ ] {
67
- const configFilesExclude = Object . assign (
68
- [ ] ,
67
+ const configFilesExcluded : {
68
+ [ key : string ] : boolean ;
69
+ } = Object . assign (
70
+ { } ,
69
71
vscode . workspace . getConfiguration ( 'advancedNewFile' ) . get ( 'exclude' ) ,
70
- vscode . workspace . getConfiguration (
71
- 'files.exclude' ,
72
- vscode . Uri . file ( root )
73
- )
72
+ (
73
+ vscode . workspace
74
+ . getConfiguration ( 'advancedNewFile' )
75
+ . get ( 'useFilesExclude' , true )
76
+ ) ?
77
+ vscode . workspace
78
+ . getConfiguration ( 'files' , vscode . Uri . file ( root ) )
79
+ . get ( 'exclude' , { } )
80
+ : { }
74
81
) ;
75
- const configIgnored = Object . keys ( configFilesExclude ) . filter (
76
- ( key ) => configFilesExclude [ key ] === true
82
+ const configIgnored = Object . keys ( configFilesExcluded ) . filter (
83
+ ( key ) => configFilesExcluded [ key ] === true
77
84
) ;
78
-
79
85
return gitignoreToGlob ( configIgnored . join ( '\n' ) , { string : true } ) ;
80
86
}
81
87
You can’t perform that action at this time.
0 commit comments