feat(flutter_tools): Changed NoIdeValidator validation type from error to warning (#95492)

This commit is contained in:
crisboarna
2022-01-07 00:05:19 +02:00
committed by GitHub
parent f8e70a8463
commit 0fef7a140a
2 changed files with 3 additions and 2 deletions

View File

@@ -285,7 +285,8 @@ class NoIdeValidator extends DoctorValidator {
@override
Future<ValidationResult> validate() async {
return ValidationResult(
ValidationType.missing,
// Info hint to user they do not have a supported IDE installed
ValidationType.notAvailable,
globals.userMessages.noIdeInstallationInfo.map((String ideInfo) => ValidationMessage(ideInfo)).toList(),
statusInfo: globals.userMessages.noIdeStatusInfo,
);

View File

@@ -88,7 +88,7 @@ void main() {
testUsingContext('No IDE Validator includes expected installation messages', () async {
final ValidationResult result = await NoIdeValidator().validate();
expect(result.type, ValidationType.missing);
expect(result.type, ValidationType.notAvailable);
expect(
result.messages.map((ValidationMessage vm) => vm.message),