

def add_view(self, window, view, history_type):
    if self.is_transient_view(window, view):
        return
    filename = view.file_name()
    if (filename is not None):
        project_name = self.get_current_project_key()
        if self.is_suppressed(view, filename):
            project_name.__remove(project_name, filename)
            self.__remove('global', filename)
        elif os.path.exists(filename):
            (group, index) = sublime.active_window().get_view_index(view)
            self.__add_to_history(project_name, history_type, filename, group, index)
            self.__add_to_history('global', history_type, filename, group, index)
        else:
            self.__remove(project_name, filename)
            self.__remove('global', filename)
        self.__save_history()

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.add_view/VarMisuse@69/88 `self`->`project_name`