Skip to content

Conversation

jonsequitur
Copy link
Contributor

@jonsequitur jonsequitur commented Nov 25, 2024

This fixes #3753.

@@ -363,7 +360,7 @@ void CreateCommandOrAppendToPrevious(TopLevelSyntaxNode languageNode)
if (commands.Count > 0 &&
commands[^1] is SubmitCode previous)
{
previous.Code += languageNode.Text;
previous.Code += Environment.NewLine + languageNode.FullText;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it matters for this code path but consider using StringBuilder (or something similar) to avoid allocating an intermediate string.

@jonsequitur jonsequitur merged commit fe89988 into dotnet:main Nov 25, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dll file reference leads to CS1025 error in latest release
2 participants