def is_supported_lang(view): return basics.is_cpp_file(view) or basics.is_python_file(view)
def on_modified(self, view): if basics.is_cpp_file(view): view.run_command('inteli_sense', {'action': 'sync_modified'})
def on_activated(self, view): if basics.is_cpp_file(view): view.run_command('inteli_sense', {'action': 'run_sense'})
def on_pre_close(self, view): if basics.is_cpp_file(view): view.run_command('inteli_sense', {'action': 'stop_sense'})