From c7090c9c5215a2cddadadad611055bb33eb6a40a Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Sun, 22 Dec 2024 20:25:43 -0800 Subject: [PATCH] Update comment --- SourceGen/LineListGen.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SourceGen/LineListGen.cs b/SourceGen/LineListGen.cs index 00447f3..6a39fbd 100644 --- a/SourceGen/LineListGen.cs +++ b/SourceGen/LineListGen.cs @@ -1042,9 +1042,8 @@ namespace SourceGen { // and require word-wrap, so it's easiest just to render them fully here. // Set "spaceAdded" to true so arstart doesn't try to add one after the comment. // - // TODO: integrate into FormattedOperandCache so we don't have to - // regenerate them unless they change. Use the MLC as the dependency. - // Better: create FormattedMLCCache, use the MLC and Formatter. + // MultiLineComment now caches the previous render, and will return it from + // the FormatText() call if the arguments match. if (mProject.Notes.TryGetValue(offset, out MultiLineComment noteData)) { List formatted = noteData.FormatText(mFormatter, "NOTE: "); StringListToLines(formatted, offset, Line.Type.Note,