File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 64
64
},
65
65
"type" : " array"
66
66
},
67
+ "syntaxTree.ignoreFiles" : {
68
+ "default" : " " ,
69
+ "markdownDescription" : " A glob pattern of files to ignore for formatting." ,
70
+ "type" : " string"
71
+ },
67
72
"syntaxTree.printWidth" : {
68
73
"markdownDescription" : " The width to be used when formatting code." ,
69
74
"type" : " number"
Original file line number Diff line number Diff line change @@ -183,6 +183,12 @@ export async function activate(context: ExtensionContext) {
183
183
args . push ( `--print-width=${ printWidth } ` ) ;
184
184
}
185
185
186
+ // Configure ignore files if any.
187
+ const ignoreFiles = config . get < string > ( "ignoreFiles" ) ;
188
+ if ( ignoreFiles ) {
189
+ args . push ( `--ignore-files=${ ignoreFiles } ` ) ;
190
+ }
191
+
186
192
const run = await getServerOptions ( args ) ;
187
193
outputChannel . appendLine ( `Starting language server: ${ run . command } ${ run . args ?. join ( " " ) } ` ) ;
188
194
You can’t perform that action at this time.
0 commit comments