Unverified Commit 0fef7a14 authored by crisboarna's avatar crisboarna Committed by GitHub

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

parent f8e70a84
...@@ -285,7 +285,8 @@ class NoIdeValidator extends DoctorValidator { ...@@ -285,7 +285,8 @@ class NoIdeValidator extends DoctorValidator {
@override @override
Future<ValidationResult> validate() async { Future<ValidationResult> validate() async {
return ValidationResult( 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(), globals.userMessages.noIdeInstallationInfo.map((String ideInfo) => ValidationMessage(ideInfo)).toList(),
statusInfo: globals.userMessages.noIdeStatusInfo, statusInfo: globals.userMessages.noIdeStatusInfo,
); );
......
...@@ -88,7 +88,7 @@ void main() { ...@@ -88,7 +88,7 @@ void main() {
testUsingContext('No IDE Validator includes expected installation messages', () async { testUsingContext('No IDE Validator includes expected installation messages', () async {
final ValidationResult result = await NoIdeValidator().validate(); final ValidationResult result = await NoIdeValidator().validate();
expect(result.type, ValidationType.missing); expect(result.type, ValidationType.notAvailable);
expect( expect(
result.messages.map((ValidationMessage vm) => vm.message), result.messages.map((ValidationMessage vm) => vm.message),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment