Skip to content

Commit 58d9ef0

Browse files
authored
[CQ] migrate off deprecated GlobalSearchScopes scope (#8131)
Move deprecated `GlobalSearchScopes` to preferred `ExecutionSearchScopes`. Source confirms this is behavior-preserving: ![image](https://github.com/user-attachments/assets/f85df58b-767a-46c0-b73a-86545f79bc6b) --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent 14958a5 commit 58d9ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flutter-idea/src/io/flutter/run/daemon/DaemonConsoleView.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import com.intellij.openapi.diagnostic.Logger;
1616
import com.intellij.openapi.project.Project;
1717
import com.intellij.openapi.vfs.VirtualFile;
18+
import com.intellij.psi.search.ExecutionSearchScopes;
1819
import com.intellij.psi.search.GlobalSearchScope;
19-
import com.intellij.psi.search.GlobalSearchScopes;
2020
import com.jetbrains.lang.dart.ide.runner.DartRelativePathsConsoleFilter;
2121
import io.flutter.settings.FlutterSettings;
2222
import io.flutter.utils.FlutterModuleUtils;
@@ -36,7 +36,7 @@ public static void install(@NotNull CommandLineState launcher, @NotNull Executio
3636
// Create our own console builder.
3737
//
3838
// We need to filter input to this console without affecting other consoles, so we cannot use a consoleFilterInputProvider.
39-
final GlobalSearchScope searchScope = GlobalSearchScopes.executionScope(env.getProject(), env.getRunProfile());
39+
final GlobalSearchScope searchScope = ExecutionSearchScopes.executionScope(env.getProject(), env.getRunProfile());
4040
final TextConsoleBuilder builder = new TextConsoleBuilderImpl(env.getProject(), searchScope) {
4141
@NotNull
4242
@Override

0 commit comments

Comments
 (0)