File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 65
65
"type" : " array"
66
66
},
67
67
"syntaxTree.printWidth" : {
68
- "default" : 80 ,
69
68
"markdownDescription" : " The width to be used when formatting code." ,
70
69
"type" : " number"
71
70
},
139
138
"rules" : {
140
139
"quotes" : [" error" , " double" ],
141
140
"semi" : " error"
142
- }
141
+ },
142
+ "ignorePatterns" : [" out" ]
143
143
},
144
144
"__metadata" : {
145
145
"id" : " b46118f9-0f6f-4320-9e2e-75c96492b4cb" ,
Original file line number Diff line number Diff line change @@ -92,7 +92,10 @@ export async function activate(context: ExtensionContext) {
92
92
}
93
93
94
94
// Configure print width.
95
- args . push ( `--print-width=${ config . get < number > ( "printWidth" ) } ` ) ;
95
+ const printWidth = config . get < number > ( "printWidth" ) ;
96
+ if ( printWidth ) {
97
+ args . push ( `--print-width=${ printWidth } ` ) ;
98
+ }
96
99
97
100
// There's a bit of complexity here. Basically, we try to locate
98
101
// an stree executable in three places, in order of preference:
You can’t perform that action at this time.
0 commit comments