Beispiel #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})
Beispiel #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)
Beispiel #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)
Beispiel #4
0
 def OnCurrentIdentifierFinished(self):
     SendEventNotificationAsync('CurrentIdentifierFinished')
Beispiel #5
0
 def OnInsertLeave(self):
     SendEventNotificationAsync('InsertLeave')
Beispiel #6
0
 def OnBufferVisit(self):
     extra_data = {}
     self._AddUltiSnipsDataIfNeeded(extra_data)
     SendEventNotificationAsync('BufferVisit', extra_data=extra_data)
Beispiel #7
0
 def OnBufferUnload(self, deleted_buffer_file):
     SendEventNotificationAsync('BufferUnload',
                                filepath=deleted_buffer_file)
Beispiel #8
0
 def OnCurrentIdentifierFinished(self):
     if not self.IsServerAlive():
         return
     SendEventNotificationAsync('CurrentIdentifierFinished')
Beispiel #9
0
 def OnInsertLeave(self):
     if not self.IsServerAlive():
         return
     SendEventNotificationAsync('InsertLeave')
Beispiel #10
0
 def OnBufferVisit(self):
     if not self.IsServerAlive():
         return
     extra_data = {}
     _AddUltiSnipsDataIfNeeded(extra_data)
     SendEventNotificationAsync('BufferVisit', extra_data)
Beispiel #11
0
 def OnBufferUnload( self, deleted_buffer_number ):
   SendEventNotificationAsync( 'BufferUnload', deleted_buffer_number )
Beispiel #12
0
 def OnBufferUnload(self, deleted_buffer_file):
     if not self._IsServerAlive():
         return
     SendEventNotificationAsync('BufferUnload',
                                {'unloaded_buffer': deleted_buffer_file})
Beispiel #13
0
 def OnBufferUnload(self, deleted_buffer_file):
     SendEventNotificationAsync(
         'BufferUnload', filepath=utils.ToUnicode(deleted_buffer_file))
Beispiel #14
0
 def OnFileSave( self, saved_buffer_number ):
   SendEventNotificationAsync( 'FileSave', saved_buffer_number )
 def OnInsertLeave( self ):
   if ( not self._user_options[ 'update_diagnostics_in_insert_mode' ] and
        not self.NeedsReparse() ):
     self.CurrentBuffer().RefreshDiagnosticsUI()
   SendEventNotificationAsync( 'InsertLeave' )