We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577d0f9 commit 5abcc13Copy full SHA for 5abcc13
crates/pg_lsp/src/server.rs
@@ -216,6 +216,7 @@ impl Server {
216
|| self
217
.db_conn
218
.as_ref()
219
+ // if the connection is already connected to the same database, do nothing
220
.is_some_and(|c| c.connected_to(options.db_connection_string.as_ref().unwrap()))
221
{
222
return Ok(());
@@ -257,8 +258,7 @@ impl Server {
257
258
.listen_for_schema_updates(move |schema_cache| {
259
internal_tx
260
.send(InternalMessage::SetSchemaCache(schema_cache))
- .unwrap();
261
- // TODO: handle result
+ .expect("LSP Server: Failed to send internal message.");
262
})
263
.await?;
264
0 commit comments