#NEWLINE# def on_load_async( self , view ) : #NEWLINE# #INDENT# if CodeSearchEvents . SearchActive : #NEWLINE# #INDENT# regions = view . find_all ( CodeSearchEvents . LastSearchString ) #NEWLINE# if ( len ( view ) > 0 ) : #NEWLINE# #INDENT# view . add_regions ( 'code_search' , regions , 'entity.name.filename.find-in-files' , 'circle' , sublime . DRAW_OUTLINED ) #NEWLINE# view . show ( regions [ 0 ] ) #NEWLINE# view . set_status ( 'CodeSearchNumRegions' , ( 'NumRegions: ' + str ( len ( regions ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# view . erase_status ( 'CodeSearchNumRegions' ) #NEWLINE# view . erase_status ( 'CodeSearch' )