Revert Rich Text (#2363)

This commit is contained in:
Paul Ritter
2021-12-20 12:38:35 +01:00
committed by GitHub
parent c64c1aca5b
commit 338a2831ee
26 changed files with 607 additions and 1257 deletions

View File

@@ -77,7 +77,7 @@ namespace Robust.Shared.Scripting
"var x = 5 + 5; var y = (object) \"foobar\"; void Foo(object a) { } Foo(y); Foo(x)";
var script = await CSharpScript.RunAsync(code);
var msg = new FormattedMessage.Builder();
var msg = new FormattedMessage();
// Even run the syntax highlighter!
AddWithSyntaxHighlighting(script.Script, msg, code, new AdhocWorkspace());
});
@@ -101,7 +101,7 @@ namespace Robust.Shared.Scripting
return _getDiagnosticArguments(diag);
}
public static void AddWithSyntaxHighlighting(Script script, FormattedMessage.Builder msg, string code,
public static void AddWithSyntaxHighlighting(Script script, FormattedMessage msg, string code,
Workspace workspace)
{
var compilation = script.GetCompilation();