@@ -276,7 +276,9 @@ class NoIdeValidator extends DoctorValidator {
276
276
}
277
277
278
278
abstract class IntelliJValidator extends DoctorValidator {
279
- IntelliJValidator (String title) : super (title);
279
+ final String installPath;
280
+
281
+ IntelliJValidator (String title, this .installPath) : super (title);
280
282
281
283
String get version;
282
284
String get pluginsPath;
@@ -301,6 +303,8 @@ abstract class IntelliJValidator extends DoctorValidator {
301
303
Future <ValidationResult > validate () async {
302
304
final List <ValidationMessage > messages = < ValidationMessage > [];
303
305
306
+ messages.add (new ValidationMessage ('IntelliJ at $installPath ' ));
307
+
304
308
_validatePackage (messages, < String > ['flutter-intellij' , 'flutter-intellij.jar' ],
305
309
'Flutter' , minVersion: kMinFlutterPluginVersion);
306
310
_validatePackage (messages, < String > ['Dart' ], 'Dart' );
@@ -397,13 +401,11 @@ abstract class IntelliJValidator extends DoctorValidator {
397
401
}
398
402
399
403
class IntelliJValidatorOnLinuxAndWindows extends IntelliJValidator {
400
- IntelliJValidatorOnLinuxAndWindows (String title, this .version, this . installPath, this .pluginsPath) : super (title);
404
+ IntelliJValidatorOnLinuxAndWindows (String title, this .version, String installPath, this .pluginsPath) : super (title, installPath );
401
405
402
406
@override
403
407
String version;
404
408
405
- final String installPath;
406
-
407
409
@override
408
410
String pluginsPath;
409
411
@@ -451,10 +453,9 @@ class IntelliJValidatorOnLinuxAndWindows extends IntelliJValidator {
451
453
}
452
454
453
455
class IntelliJValidatorOnMac extends IntelliJValidator {
454
- IntelliJValidatorOnMac (String title, this .id, this . installPath) : super (title);
456
+ IntelliJValidatorOnMac (String title, this .id, String installPath) : super (title, installPath );
455
457
456
458
final String id;
457
- final String installPath;
458
459
459
460
static final Map <String , String > _dirNameToId = < String , String > {
460
461
'IntelliJ IDEA.app' : 'IntelliJIdea' ,
0 commit comments