@@ -271,7 +271,7 @@ def buildRefInfo(refInfoV):
271271 return refInfo
272272
273273class EditorClient :
274- """ A singleton class holding information that must be accessible globally. """
274+ """ A singleton class holding information for the entire application that must be accessible globally"""
275275 def __init__ (self ):
276276 # load formatting settings and set callbacks for setting changes
277277 settings = sublime .load_settings ('Preferences.sublime-settings' )
@@ -300,6 +300,7 @@ def load_format_settings(self):
300300 self .tab_size = settings .get ('tab_size' , 4 )
301301 self .indent_size = settings .get ('indent_size' , 4 )
302302 self .translate_tab_to_spaces = settings .get ('translate_tabs_to_spaces' , False )
303+ self .set_features ()
303304
304305 def is_st2 (self ):
305306 if not hasattr (self , '_is_st2' ):
@@ -313,7 +314,7 @@ def set_features(self):
313314 "tabSize" : self .tab_size ,
314315 "indentSize" : self .indent_size ,
315316 "convertTabsToSpaces" : self .translate_tab_to_spaces
316- }
317+ }
317318 self .service .configure (host_info , None , format_options )
318319
319320 def reload_required (self , view ):
@@ -466,7 +467,7 @@ def setFilePrefs(view):
466467# given a list of regions and a (possibly zero-length) string to insert,
467468# send the appropriate change information to the server
468469def sendReplaceChangesForRegions (view , regions , insertString ):
469- if cli .is_st2 () or ( not is_typescript (view ) ):
470+ if cli .is_st2 () or not is_typescript (view ):
470471 return
471472 for region in regions :
472473 location = getLocationFromPosition (view , region .begin ())
0 commit comments