Exemplo n.º 1
0
 def OnBufferUnload(self, deleted_buffer_file):
     if not self.IsServerAlive():
         return
     SendEventNotificationAsync(
         'BufferUnload',
         filepath=deleted_buffer_file,
         extra_data={'unloaded_buffer': deleted_buffer_file})
Exemplo n.º 2
0
    def OnBufferVisit(self):
        for filetype in vimsupport.CurrentFiletypes():
            # Send the signature help available request for these filetypes if we need
            # to (as a side effect of checking if it is complete)
            self.SignatureHelpAvailableRequestComplete(filetype, True)

        extra_data = {}
        self._AddUltiSnipsDataIfNeeded(extra_data)
        SendEventNotificationAsync('BufferVisit', extra_data=extra_data)
Exemplo n.º 3
0
 def OnBufferVisit(self):
     filetype = vimsupport.CurrentFiletypes()[0]
     # The constructor of dictionary values starts the request,
     # so the line below fires a new request only if the dictionary
     # value is accessed for the first time.
     self._signature_help_available_requests[filetype].Done()
     extra_data = {}
     self._AddUltiSnipsDataIfNeeded(extra_data)
     SendEventNotificationAsync('BufferVisit', extra_data=extra_data)
Exemplo n.º 4
0
 def OnCurrentIdentifierFinished(self):
     SendEventNotificationAsync('CurrentIdentifierFinished')
Exemplo n.º 5
0
 def OnInsertLeave(self):
     SendEventNotificationAsync('InsertLeave')
Exemplo n.º 6
0
 def OnBufferVisit(self):
     extra_data = {}
     self._AddUltiSnipsDataIfNeeded(extra_data)
     SendEventNotificationAsync('BufferVisit', extra_data=extra_data)
Exemplo n.º 7
0
 def OnBufferUnload(self, deleted_buffer_file):
     SendEventNotificationAsync('BufferUnload',
                                filepath=deleted_buffer_file)
Exemplo n.º 8
0
 def OnCurrentIdentifierFinished(self):
     if not self.IsServerAlive():
         return
     SendEventNotificationAsync('CurrentIdentifierFinished')
Exemplo n.º 9
0
 def OnInsertLeave(self):
     if not self.IsServerAlive():
         return
     SendEventNotificationAsync('InsertLeave')
Exemplo n.º 10
0
 def OnBufferVisit(self):
     if not self.IsServerAlive():
         return
     extra_data = {}
     _AddUltiSnipsDataIfNeeded(extra_data)
     SendEventNotificationAsync('BufferVisit', extra_data)
Exemplo n.º 11
0
 def OnBufferUnload( self, deleted_buffer_number ):
   SendEventNotificationAsync( 'BufferUnload', deleted_buffer_number )
Exemplo n.º 12
0
 def OnBufferUnload(self, deleted_buffer_file):
     if not self._IsServerAlive():
         return
     SendEventNotificationAsync('BufferUnload',
                                {'unloaded_buffer': deleted_buffer_file})
Exemplo n.º 13
0
 def OnBufferUnload(self, deleted_buffer_file):
     SendEventNotificationAsync(
         'BufferUnload', filepath=utils.ToUnicode(deleted_buffer_file))
Exemplo n.º 14
0
 def OnFileSave( self, saved_buffer_number ):
   SendEventNotificationAsync( 'FileSave', saved_buffer_number )
Exemplo n.º 15
0
 def OnInsertLeave( self ):
   if ( not self._user_options[ 'update_diagnostics_in_insert_mode' ] and
        not self.NeedsReparse() ):
     self.CurrentBuffer().RefreshDiagnosticsUI()
   SendEventNotificationAsync( 'InsertLeave' )