コード例 #1
0
 def __init__(self):
     super().__init__()
     self.autocompleter = Autocomplete.AutoCompleter()
     self.backend_mgr = BackendManager.BackendManager()
     self.type_cache = Types.SourceHaskellTypeCache()
     # I get two calls of `on_post_save` after saving file
     # To prevent extra calls to check/infer etc., we store here last updated time
     # view => (view.update_count(), time.clock())
     self.update_cache = {}
コード例 #2
0
 def __init__(self):
     super().__init__()
     self.backend_mgr = BackendManager.BackendManager()
     self.type_cache = Types.SourceHaskellTypeCache()
     self.autocompleter = Autocomplete.AutoCompleter()
     # Fly mode state:
     self.fly_view = LockedObject.LockedObject({'view': None, 'mtime': None})
     self.fly_event = threading.Event()
     self.fly_agent = threading.Thread(target='fly_check')
コード例 #3
0
    def __init__(self, view):
        super().__init__(view)
        self.autocompleter = Autocomplete.AutoCompleter()
        self.fly_lock = threading.RLock()
        self.fly_check_loop = threading.Event()
        self.fly_check_flag = threading.Event()
        self.fly_check_thread = None
        self.next_flycheck = time.time() + Settings.PLUGIN.lint_check_fly_idle

        # They should start out as clear. Paranoia.
        self.fly_check_loop.clear()
        self.fly_check_flag.clear()
コード例 #4
0
ファイル: zzplugin.py プロジェクト: dniku/SublimeHaskell
 def __init__(self, view):
     super().__init__(view)
     self.autocompleter = Autocomplete.AutoCompleter()
     self.backend_mgr = BackendManager.BackendManager()
     self.type_cache = Types.SourceHaskellTypeCache()