Fix delayed lsp request

This commit is contained in:
Keith Simmons 2022-06-09 14:29:32 -07:00
parent 722023e347
commit 93158bfcff
2 changed files with 20 additions and 7 deletions

View file

@ -988,7 +988,6 @@ impl LspCommand for GetHover {
_: ModelHandle<Buffer>,
_: AsyncAppContext,
) -> Result<Self::Response> {
println!("Response from proto");
let range = if let (Some(start), Some(end)) = (message.start, message.end) {
language::proto::deserialize_anchor(start)
.and_then(|start| language::proto::deserialize_anchor(end).map(|end| start..end))