def get_focused_view_id(self, view):
        active_view = view.window().active_view()

        for view in view.window().views():
            if view == active_view:
                return view
Return the focused view which shares view's buffer.
dataset/ETHPy150Open SublimeLinter/SublimeLinter3/sublimelinter.py/SublimeLinter.get_focused_view_id