hi i’m working on an extension of this plugin: https://github.com/aziz/SublimeHyperClick
i need to call the view from inside a new resolver
import sublime
def __init__(self, view, str_path, current_dir, roots, lang, settings): #view from original calling file
self.view = view
.......
def resolve(self):
regions = self.view.find_all(self.vendor_dirs[0])
but if i use to bypass the import of the view
regions = sublime.Window.active_view().find_all(self.vendor_dirs[0])
it say that active_view needs a parameter (even if in the documentation there is no parameters) and if i pass self it’s not the correct element.
i want to prevent to pass to all the methods the main view.
how i can archive it?
thanks