Remove warnings for the SuggestedValues provider (i.e. runs-on)

This commit is contained in:
Chris Sidi
2023-01-23 23:11:29 -05:00
parent 1f3f130a4d
commit b2f9502197
2 changed files with 3 additions and 37 deletions
+2 -30
View File
@@ -73,21 +73,7 @@ jobs:
{valueProviderConfig: defaultValueProviders}
);
expect(result.length).toBe(1);
expect(result[0]).toEqual({
message: "Value 'does-not-exist' might not be valid",
severity: DiagnosticSeverity.Warning,
range: {
end: {
character: 27,
line: 3
},
start: {
character: 13,
line: 3
}
}
} as Diagnostic);
expect(result.length).toBe(0);
});
it("value in sequence not returned by value provider", async () => {
@@ -106,21 +92,7 @@ jobs:
{valueProviderConfig: defaultValueProviders}
);
expect(result.length).toBe(1);
expect(result[0]).toEqual({
message: "Value 'does-not-exist' might not be valid",
severity: DiagnosticSeverity.Warning,
range: {
end: {
character: 20,
line: 5
},
start: {
character: 6,
line: 5
}
}
} as Diagnostic);
expect(result.length).toBe(0);
});
it("single value not returned by allowed value provider", async () => {
+1 -7
View File
@@ -150,13 +150,7 @@ function invalidValue(diagnostics: Diagnostic[], token: StringToken, kind: Value
});
break;
case ValueProviderKind.SuggestedValues:
diagnostics.push({
message: `Value '${token.value}' might not be valid`,
severity: DiagnosticSeverity.Warning,
range: mapRange(token.range)
});
break;
// no messages for SuggestedValues
}
}