Пример #1
0
    def buildAutocompletions(self, prefs, view, content, pos, intel_db_filepath):
        # # DEBUG
        # time.sleep(1.5)
        # return [('testcompletion1\tsample','test1'),('testcompletion2\tsample','test2')]
        # # DEBUG

        completions_array = phpdaemon.runRemoteCommandInPHPDaemon(prefs, 'autoComplete', [content, pos, intel_db_filepath])
        if completions_array == None:
            debugMsg(prefs, "completions_array was None");
            return

        # convert completions array into tuples for python
        completions = []
        for item in completions_array:
            completions.append((item[0], item[1]))
        return completions
Пример #2
0
    def buildAutocompletions(self, prefs, view, content, pos,
                             intel_db_filepath):
        # # DEBUG
        # time.sleep(1.5)
        # return [('testcompletion1\tsample','test1'),('testcompletion2\tsample','test2')]
        # # DEBUG

        completions_array = phpdaemon.runRemoteCommandInPHPDaemon(
            prefs, 'autoComplete', [content, pos, intel_db_filepath])
        if completions_array == None:
            debugMsg(prefs, "completions_array was None")
            return

        # convert completions array into tuples for python
        completions = []
        for item in completions_array:
            completions.append((item[0], item[1]))
        return completions
Пример #3
0
 def run(self, edit):
     prefs = preferences.load(self.view)
     phpdaemon.runRemoteCommandInPHPDaemon(prefs, 'quit', [])
Пример #4
0
 def run(self, edit):
     prefs = preferences.load(self.view)
     phpdaemon.runRemoteCommandInPHPDaemon(prefs, 'quit', [])