Add lua syntax highlighting and lsp support

This commit is contained in:
Kay Simmons 2023-02-05 23:21:29 -08:00
parent 8be9d21340
commit 4642817e72
10 changed files with 458 additions and 3 deletions

View file

@ -1,3 +1,4 @@
use log::warn;
pub use lsp_types::request::*;
pub use lsp_types::*;
@ -220,10 +221,10 @@ impl LanguageServer {
}
}
} else {
return Err(anyhow!(
"failed to deserialize message:\n{}",
warn!(
"Failed to deserialize message:\n{}",
std::str::from_utf8(&buffer)?
));
);
}
// Don't starve the main thread when receiving lots of messages at once.