Working syntax highlighting again

This commit is contained in:
2025-12-05 14:53:56 -07:00
parent 7a72982797
commit 979d32b413
3 changed files with 13 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ public static unsafe class SlangExtensions
* Rust allocation after the List is created, there is no need to Drop this memory.
* </summary>
*/
public static StyledLine ToLine(this Vec_FfiToken_t vec, string sourceText)
public static List<SemanticToken> ToTokenList(this Vec_FfiToken_t vec)
{
var tokens = new List<SemanticToken>();
@@ -80,7 +80,7 @@ public static unsafe class SlangExtensions
Ffi.free_ffi_token_vec(vec);
return new StyledLine(sourceText, tokens);
return tokens;
}
public static unsafe List<Diagnostic> ToList(this Vec_FfiDiagnostic_t vec)