Closed waf closed 11 months ago
Attention: 5 lines
in your changes are missing coverage. Please review.
Comparison is base (
884985f
) 77.4% compared to head (081c7fa
) 77.5%.
Files | Patch % | Lines |
---|---|---|
CSharpRepl/Program.cs | 50.0% | 5 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Ensure that if the user has their "UI Culture" set to a language, we use that language for compiler error messages (emitted by CSharpScript).
We don't actually have any API for doing this with roslyn that I could find. Instead, through trial and error, by setting
CultureInfo.DefaultThreadCurrentCulture
to the UI Culture, we can get CSharpScript to emit errors in the language of the UI culture.Note that setting
CultureInfo.DefaultThreadCurrentUICulture
didn't fix it; it needs to beCultureInfo.DefaultThreadCurrentCulture
.Closes #312.