File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
flutter-idea/src/io/flutter/survey Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 17
17
import com .intellij .openapi .fileEditor .FileEditorManagerListener ;
18
18
import com .intellij .openapi .project .Project ;
19
19
import com .intellij .openapi .vfs .VirtualFile ;
20
+ import com .jetbrains .lang .dart .sdk .DartSdk ;
20
21
import icons .FlutterIcons ;
21
22
import io .flutter .FlutterMessages ;
22
23
import io .flutter .FlutterUtils ;
23
24
import io .flutter .pub .PubRoot ;
25
+ import io .flutter .sdk .FlutterSdk ;
26
+ import io .flutter .sdk .FlutterSdkVersion ;
24
27
import org .jetbrains .annotations .NotNull ;
25
28
26
29
import java .util .concurrent .Executors ;
@@ -96,7 +99,20 @@ public void actionPerformed(@NotNull AnActionEvent event) {
96
99
properties .setValue (survey .uniqueId , true );
97
100
notification .expire ();
98
101
99
- String url = survey .urlPrefix + "?Source=IntelliJ" ;
102
+ StringBuilder stringBuilder = new StringBuilder (survey .urlPrefix + "?Source=IntelliJ" );
103
+
104
+ final DartSdk dartSdk = DartSdk .getDartSdk (myProject );
105
+ if (dartSdk != null ) {
106
+ stringBuilder .append ("&DartVersion=" ).append (dartSdk .getVersion ());
107
+ }
108
+
109
+ final FlutterSdk flutterSdk = FlutterSdk .getFlutterSdk (myProject );
110
+ final FlutterSdkVersion flutterSdkVersion = flutterSdk == null ? null : flutterSdk .getVersion ();
111
+ if (flutterSdkVersion != null ) {
112
+ stringBuilder .append ("&FlutterVersion=" ).append (flutterSdkVersion .getVersionText ());
113
+ }
114
+
115
+ String url = stringBuilder .toString ();
100
116
BrowserUtil .browse (url );
101
117
}
102
118
});
You can’t perform that action at this time.
0 commit comments