parameters: (view)
docstring: Reload the buffer content on the worker process
  
      Note: the worker process won't change the client_info object to avoid synchronization issues
docstring_summary: Reload the buffer content on the worker process
docstring_tokens: Reload the buffer content on the worker process
function: def reload_buffer_on_worker(view):
      """Reload the buffer content on the worker process
  
      Note: the worker process won't change the client_info object to avoid synchronization issues
      """
      if not view.is_loading():
          tmpfile_name = get_tempfile_name()
          tmpfile = codecs.open(tmpfile_name, "w", "utf-8")
          text = view.substr(sublime.Region(0, view.size()))
          tmpfile.write(text)
          tmpfile.flush()
          if not IS_ST2:
              cli.service.reload_async_on_worker(view.file_name(), tmpfile_name, recv_reload_response)
          else:
              reload_response = cli.service.reload_on_worker(view.file_name(), tmpfile_name)
              recv_reload_response(reload_response)
function_tokens: def reload_buffer_on_worker ( view ) : if not view . is_loading ( ) : tmpfile_name = get_tempfile_name ( ) tmpfile = codecs . open ( tmpfile_name , "w" , "utf-8" ) text = view . substr ( sublime . Region ( 0 , view . size ( ) ) ) tmpfile . write ( text ) tmpfile . flush ( ) if not IS_ST2 : cli . service . reload_async_on_worker ( view . file_name ( ) , tmpfile_name , recv_reload_response ) else : reload_response = cli . service . reload_on_worker ( view . file_name ( ) , tmpfile_name ) recv_reload_response ( reload_response )