Merge pull request #2402 from zed-industries/fix-panics
Fix panic in pane.rs
This commit is contained in:
commit
69273648b3
5 changed files with 26 additions and 10 deletions
|
@ -378,13 +378,6 @@ impl Copilot {
|
|||
cx.clone(),
|
||||
)?;
|
||||
|
||||
let server = server.initialize(Default::default()).await?;
|
||||
let status = server
|
||||
.request::<request::CheckStatus>(request::CheckStatusParams {
|
||||
local_checks_only: false,
|
||||
})
|
||||
.await?;
|
||||
|
||||
server
|
||||
.on_notification::<LogMessage, _>(|params, _cx| {
|
||||
match params.level {
|
||||
|
@ -405,6 +398,14 @@ impl Copilot {
|
|||
)
|
||||
.detach();
|
||||
|
||||
let server = server.initialize(Default::default()).await?;
|
||||
|
||||
let status = server
|
||||
.request::<request::CheckStatus>(request::CheckStatusParams {
|
||||
local_checks_only: false,
|
||||
})
|
||||
.await?;
|
||||
|
||||
server
|
||||
.request::<request::SetEditorInfo>(request::SetEditorInfoParams {
|
||||
editor_info: request::EditorInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue