Skip to content

Commit 48200e2

Browse files
Tweak formatting logic to account for comments
1 parent 41dbfaa commit 48200e2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

libs/assembling/assembler/src/lib/assembler-with-index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ export async function AssembleWithIndex<T extends FormatterType>(
1717
// get the tokens for our file
1818
const parsed = await GetParsedPROCode(index, file, code, cancel);
1919

20+
// get assembled code!
21+
const assembled = Assembler(parsed, cancel, formatting);
22+
23+
// clean up cache since we much with the tree
24+
index.parsedCache.remove(file);
25+
2026
// format and return
21-
return Assembler(parsed, cancel, formatting);
27+
return assembled;
2228
}

0 commit comments

Comments
 (0)