File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 210210 "LuaCoderAssist.format.enable" : {
211211 "type" : " boolean" ,
212212 "default" : true ,
213- "description" : " Enable/Disable code formatting ."
213+ "description" : " Enable/Disable code formatter ."
214214 },
215215 "LuaCoderAssist.format.lineWidth" : {
216216 "type" : " integer" ,
321321 "type" : " git" ,
322322 "url" : " https://github.com/liwangqian/LuaCoderAssist"
323323 }
324- }
324+ }
Original file line number Diff line number Diff line change @@ -52,13 +52,7 @@ class FormatProvider {
5252 }
5353
5454 _formatOptions ( userOptions ) {
55- let formatEnable = true ;
56- if ( ! userOptions . enable ) {
57- formatEnable = false ;
58- }
59-
6055 return {
61- enable : formatEnable ,
6256 lineWidth : userOptions . lineWidth || 120 ,
6357 indentCount : userOptions . indentCount || 4 ,
6458 quotemark : userOptions . quotemark || 'single'
You can’t perform that action at this time.
0 commit comments