Update affected filenames before the error store
This allows the panel to access all filenames we want it to show.
@@ -363,6 +363,8 @@ def group_by_filename_and_update(
for filename in clean_files:
grouped[filename] # For the side-effect of creating a new empty `list`
+ affected_filenames[linter] = current_filenames
+
did_update_main_view = False
for filename, errors in grouped.items():
if not filename: # backwards compatibility
@@ -386,8 +388,6 @@ def group_by_filename_and_update(
if not did_update_main_view:
update_file_errors(main_filename, linter, [], reason)
- affected_filenames[linter] = current_filenames
-
def update_file_errors(filename, linter, errors, reason=None):
# type: (FileName, LinterName, List[LintError], Optional[Reason]) -> None
