163 line, index = editor.getCursorPosition() |
163 line, index = editor.getCursorPosition() |
164 line += 1 # jedi line numbers are 1 based |
164 line += 1 # jedi line numbers are 1 based |
165 source = editor.text() |
165 source = editor.text() |
166 return filename, line, index, source |
166 return filename, line, index, source |
167 |
167 |
168 def requestCompletions(self, editor, context, acText): |
168 def requestCompletions(self, editor, context, acText): # noqa: U100 |
169 """ |
169 """ |
170 Public method to request a list of possible completions. |
170 Public method to request a list of possible completions. |
171 |
171 |
172 @param editor reference to the editor object, that called this method |
172 @param editor reference to the editor object, that called this method |
173 @type Editor |
173 @type Editor |
223 if "Error" not in result: |
223 if "Error" not in result: |
224 editor = self.__vm.getOpenEditor(result["FileName"]) |
224 editor = self.__vm.getOpenEditor(result["FileName"]) |
225 if editor is not None: |
225 if editor is not None: |
226 editor.completionsListReady(names, result["CompletionText"]) |
226 editor.completionsListReady(names, result["CompletionText"]) |
227 |
227 |
228 def getCallTips(self, editor, pos, commas): |
228 def getCallTips(self, editor, pos, commas): # noqa: U100 |
229 """ |
229 """ |
230 Public method to calculate calltips. |
230 Public method to calculate calltips. |
231 |
231 |
232 @param editor reference to the editor object, that called this method |
232 @param editor reference to the editor object, that called this method |
233 @type Editor |
233 @type Editor |