def on_query_completions(self, view, prefix, locations):
self.view = view
file = view.file_name()
if not _is_swift(file):
return None
offset = locations[0]
project_directory = _project_directory(view)
text = _view_text(view)
suggestions = subl_source_kitten.complete_with_haste(offset, file, project_directory, text)
return (suggestions, sublime.INHIBIT_WORD_COMPLETIONS | sublime.INHIBIT_EXPLICIT_COMPLETIONS)
评论列表
文章目录