diff --git a/rottlsp/src/main.rs b/rottlsp/src/main.rs index d88dfc1..e82bab5 100644 --- a/rottlsp/src/main.rs +++ b/rottlsp/src/main.rs @@ -37,7 +37,7 @@ impl tower_lsp::LanguageServer for RottLanguageServer { // Measure lexing performance to track parser responsiveness. let start_time = std::time::Instant::now(); let has_errors = - rottlib::lexer::TokenizedFile::from_source(¶ms.text_document.text).had_errors(); + rottlib::lexer::TokenizedFile::from_str(¶ms.text_document.text).has_errors(); let elapsed_time = start_time.elapsed(); self.client