subl.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:SourceKittenSubl 作者: Dan2552 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号