File tree 1 file changed +10
-2
lines changed
flutter-idea/src/io/flutter/performance 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 13
13
import com .intellij .openapi .wm .ToolWindow ;
14
14
import com .intellij .openapi .wm .ToolWindowFactory ;
15
15
import com .intellij .openapi .wm .ToolWindowManager ;
16
- import icons . FlutterIcons ;
17
- import io .flutter .utils . UIUtils ;
16
+ import io . flutter . sdk . FlutterSdk ;
17
+ import io .flutter .sdk . FlutterSdkVersion ;
18
18
import io .flutter .utils .ViewListener ;
19
19
import io .flutter .view .FlutterViewMessages ;
20
+ import kotlin .coroutines .Continuation ;
20
21
import org .jetbrains .annotations .NotNull ;
21
22
22
23
public class FlutterPerformanceViewFactory implements ToolWindowFactory , DumbAware {
@@ -62,4 +63,11 @@ public FlutterPerformanceViewListener(@NotNull Project project) {
62
63
super (project , FlutterPerformanceView .TOOL_WINDOW_ID , TOOL_WINDOW_VISIBLE_PROPERTY );
63
64
}
64
65
}
66
+
67
+ @ Override
68
+ public Object isApplicableAsync (@ NotNull Project project , @ NotNull Continuation <? super Boolean > $completion ) {
69
+ FlutterSdk sdk = FlutterSdk .getFlutterSdk (project );
70
+ FlutterSdkVersion sdkVersion = sdk == null ? null : sdk .getVersion ();
71
+ return sdkVersion == null || !sdkVersion .canUseDeepLinksTool ();
72
+ }
65
73
}
You can’t perform that action at this time.
0 commit comments