File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,11 +173,15 @@ class Formatters {
173173 return ss ;
174174 } ) ) ;
175175
176- this . handlers [ a ] = {
177- selector,
178- full : register ( a , selector ) ,
179- partial : register ( a , selector , true )
180- } ;
176+ if ( selector . length ) {
177+ this . handlers [ a ] = {
178+ selector,
179+ full : register ( a , selector ) ,
180+ partial : register ( a , selector , true )
181+ } ;
182+ } else {
183+ delete this . handlers [ a ] ;
184+ }
181185 }
182186 }
183187 getFormat ( doc ) {
Original file line number Diff line number Diff line change 22 "name" : " beautify" ,
33 "displayName" : " Beautify" ,
44 "description" : " Beautify code in place for VS Code" ,
5- "version" : " 1.4.10 " ,
5+ "version" : " 1.4.11 " ,
66 "publisher" : " HookyQR" ,
77 "engines" : {
88 "vscode" : " ^1.22.0"
105105 "js" : {
106106 "type" : [
107107 " object" ,
108- " array"
108+ " array" ,
109+ " null"
109110 ],
110111 "items" : {
111112 "type" : " string"
138139 "css" : {
139140 "type" : [
140141 " object" ,
141- " array"
142+ " array" ,
143+ " null"
142144 ],
143145 "items" : {
144146 "type" : " string"
171173 "html" : {
172174 "type" : [
173175 " object" ,
174- " array"
176+ " array" ,
177+ " null"
175178 ],
176179 "items" : {
177180 "type" : " string"
You can’t perform that action at this time.
0 commit comments