File tree 4 files changed +18
-14
lines changed
flutter-idea/src/io/flutter/sdk
4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2025 The Chromium Authors. All rights reserved.
3
+ * Use of this source code is governed by a BSD-style license that can be
4
+ * found in the LICENSE file.
5
+ */
6
+
7
+ package io.flutter.sdk
8
+
9
+ import com.intellij.openapi.project.Project
10
+ import com.intellij.openapi.startup.ProjectActivity
11
+
12
+ class FlutterProjectActivity : ProjectActivity {
13
+ override suspend fun execute (project : Project ) {
14
+ FlutterSdkManager .getInstance(project).checkForFlutterSdkChange()
15
+ }
16
+ }
Original file line number Diff line number Diff line change @@ -52,20 +52,6 @@ private FlutterSdkManager(@NotNull Project project) {
52
52
});
53
53
54
54
ProjectManager .getInstance ().addProjectManagerListener (myProject , new ProjectManagerListener () {
55
- //See https://plugins.jetbrains.com/docs/intellij/plugin-components.html#comintellijpoststartupactivity
56
- // for notice and documentation on the deprecation intentions of
57
- // Components from JetBrains.
58
- //
59
- // Migration forward has different directions before and after
60
- // 2023.1, if we can, it would be prudent to wait until we are
61
- // only supporting this major platform as a minimum version.
62
- //
63
- // https://github.com/flutter/flutter-intellij/issues/6953
64
- @ Override
65
- public void projectOpened (@ NotNull Project project ) {
66
- checkForFlutterSdkChange ();
67
- }
68
-
69
55
@ Override
70
56
public void projectClosed (@ NotNull Project project ) {
71
57
checkForFlutterSdkChange ();
Original file line number Diff line number Diff line change 361
361
serviceImplementation =" io.flutter.bazel.WorkspaceCache" />
362
362
<projectService serviceImplementation =" io.flutter.pub.PubRootCache" />
363
363
364
+ <backgroundPostStartupActivity implementation =" io.flutter.sdk.FlutterProjectActivity" />
364
365
<backgroundPostStartupActivity id =" FontPreviewStartupActivity"
365
366
implementation =" io.flutter.font.FontPreviewStartupActivity"
366
367
order =" last" />
Original file line number Diff line number Diff line change 269
269
serviceImplementation =" io.flutter.bazel.WorkspaceCache" />
270
270
<projectService serviceImplementation =" io.flutter.pub.PubRootCache" />
271
271
272
+ <backgroundPostStartupActivity implementation =" io.flutter.sdk.FlutterProjectActivity" />
272
273
<backgroundPostStartupActivity id =" FontPreviewStartupActivity"
273
274
implementation =" io.flutter.font.FontPreviewStartupActivity"
274
275
order =" last" />
You can’t perform that action at this time.
0 commit comments