From 56c0e00b036ee4b3c23701b8c774954cf30fa14e Mon Sep 17 00:00:00 2001 From: SilasMarvin <19626586+SilasMarvin@users.noreply.github.com> Date: Sat, 23 Mar 2024 22:44:22 -0700 Subject: [PATCH] Added some comments --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c32a324..70825a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -54,7 +54,6 @@ fn main() -> Result<()> { FmtSubscriber::builder() .with_writer(std::io::stderr) .with_env_filter(EnvFilter::from_env("LSP_AI_LOG")) - // .with_max_level(tracing::Level::TRACE) .init(); let (connection, io_threads) = Connection::stdio(); @@ -82,6 +81,10 @@ fn main_loop(connection: Connection, args: serde_json::Value) -> Result<()> { // Our channel we use to communicate with our transformer_worker let last_worker_request = Arc::new(Mutex::new(None)); + // TODO: + // Both of these workers should be resiliant to errors + // If they have an error they should just try to restart. It should be logged as an error, but it shouldn't kill the process + // Setup our memory_worker // TODO: Setup some kind of error handler // Set the memory_backend