#NEWLINE# def run( self , action = 'primary' , force_update = False , kill_only = False ) : #NEWLINE# #INDENT# '\n        @action\n          One of: primary, secondary\n        ' #NEWLINE# self . raise_event ( self , EventSource . ON_DART_RUN ) #NEWLINE# try : #NEWLINE# #INDENT# view = self . window . active_view ( ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( force_update or ( DartSmartRunCommand . last_run_file [ 0 ] is None ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# DartSmartRunCommand . last_run_file = ( DartFile ( view ) . is_pubspec , view . file_name ( ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if DartSmartRunCommand . last_run_file [ 0 ] : #NEWLINE# #INDENT# self . window . run_command ( 'dart_run_pubspec' , { #NEWLINE# #INDENT# 'action' : action , #NEWLINE# 'file_name' : DartSmartRunCommand . last_run_file [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# return #NEWLINE# #UNINDENT# self . window . run_command ( 'dart_run_file' , { #NEWLINE# #INDENT# 'action' : self , #NEWLINE# 'file_name' : DartSmartRunCommand . last_run_file [ 1 ] , #NEWLINE# 'kill_only' : kill_only , #NEWLINE# #UNINDENT# } )