File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 53
53
"type" : " object" ,
54
54
"title" : " Syntax Tree" ,
55
55
"properties" : {
56
+ "syntaxTree.printWidth" : {
57
+ "default" : 80 ,
58
+ "markdownDescription" : " The width to be used when formatting code." ,
59
+ "type" : " number"
60
+ },
56
61
"syntaxTree.singleQuotes" : {
57
62
"default" : false ,
58
63
"markdownDescription" : " Uses single-quoted strings when possible." ,
Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ export async function activate(context: ExtensionContext) {
87
87
args . push ( `--plugins=${ Array . from ( plugins ) . join ( "," ) } ` ) ;
88
88
}
89
89
90
+ // Configure print width.
91
+ args . push ( `--print-width=${ config . get < number > ( "printWidth" ) } ` )
92
+
90
93
// There's a bit of complexity here. Basically, if there's an open folder,
91
94
// then we're going to check if the syntax_tree gem is inside the bundle. If
92
95
// it is, then we'll run bundle exec stree. This is good, because it'll
You can’t perform that action at this time.
0 commit comments