C# file showing up as plain text #5318
Replies: 3 comments 2 replies
-
Can you clarify which files in your pull-request are affected? |
Beta Was this translation helpful? Give feedback.
-
This sounds a lot like the problem previously reported in #5252 but in this case I can see it's slightly different. The files that don't show syntax highlighting are those that are below the fold and "lazy loaded" as you scroll. From that PR, I start to see the problem from the fifth file: ... and then every file beyond that fails to show syntax highlighting, regardless of language. Syntax highlighting does however show when viewing the file in isolation. Using the split-view trick doesn't change the behaviour unlike in #5252 So in short...
Spot On!!! This appears to be a problem with the way the GitHub site is loading those files on large PRs. This is not anything Linguist has any control over so this is not the right place for this. I recommend you use the "Contact GitHub" link from the PR page showing the problem to contact GitHub support. |
Beta Was this translation helpful? Give feedback.
-
@Alhadis the files that are showing in plain text, instead of with C#. It's pretty easy to spot. @lildude pointed them out already.
@lildude, I initially opened the issue there, and they sent me here! Also, Discussions are broken. I got zero notifications from this thread. I had to manually come back to see if there were any updates. The whole process of logging GitHub is really frustrating. |
Beta Was this translation helpful? Give feedback.
-
A few files in this PR dotnet/roslyn-analyzers#4806 are not getting C# syntax highlighting. Seems like a GitHub bug.
Creating the discussion first because that was the recommendation in the issue template.
Beta Was this translation helpful? Give feedback.
All reactions