Skip to content

Commit

Permalink
Always set rescript console filters (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
giraud committed Sep 14, 2022
1 parent 879d4c8 commit b6a4bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/com/reason/ide/console/ORConsoleFilterProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ public class ORConsoleFilterProvider extends ConsoleDependentFilterProvider {
@Override
public Filter @NotNull [] getDefaultFilters(@NotNull ConsoleView consoleView, @NotNull Project project, @NotNull GlobalSearchScope scope) {
if (consoleView instanceof RescriptConsoleView) {
return project.getService(ORSettings.class).isUseSuperErrors()
? super.getDefaultFilters(project)
: ((RescriptConsoleView) consoleView).getFilters();
return ((RescriptConsoleView) consoleView).getFilters();
}
if (consoleView instanceof DuneConsoleView) {
return ((DuneConsoleView) consoleView).getFilters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public RescriptConsoleView(@NotNull Project project) {
}

public Filter @NotNull [] getFilters() {
return new Filter[]{new RescriptOCamlConsoleFilter(getProject())};
return new Filter[]{new UrlFilter(), new RescriptOCamlConsoleFilter(getProject())};
}
}

0 comments on commit b6a4bb4

Please sign in to comment.