Hook into various methods to ensure slang code is populated when editor is open
This commit is contained in:
@@ -14,11 +14,7 @@ public class SlangFormatter : ICodeFormatter
|
||||
|
||||
public override string Compile()
|
||||
{
|
||||
if (Marshal.CompileFromString(this.Lines.RawText, out string compiled))
|
||||
{
|
||||
return compiled;
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
L.Info("ICodeFormatter attempted to compile source code.");
|
||||
return this.Lines.RawText;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user