Show affected closed files beside open files in panel
@@ -285,7 +285,19 @@ def buffer_ids_per_window(window):
def filenames_per_window(window):
- return {util.get_filename(v) for v in window.views()}
+ # we want to have all open files
+ open_filenames = set(util.get_filename(v) for v in window.views())
+
+ # plus their dependencies
+ affected_filenames = persist.affected_filenames_per_filename.items()
+ window_filenames = open_filenames.union(*[
+ filenames
+ for filename, filenames_per_linter in affected_filenames
+ if filename in open_filenames
+ for filenames in filenames_per_linter.values()
+ ])
+
+ return window_filenames
def create_path_dict(window, filenames):
