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.
init
1 parent ea2403d commit 1b17160Copy full SHA for 1b17160
src/server.rs
@@ -101,6 +101,9 @@ impl LanguageServer for Backend {
101
}
102
103
async fn initialized(&self, _: InitializedParams) {
104
+ if self.should_sync() {
105
+ self.do_sync().await;
106
+ }
107
self.client
108
.log_message(MessageType::INFO, "initialized!")
109
.await;
@@ -408,7 +411,6 @@ impl Backend {
408
411
409
412
async fn init(&self, params: Option<Value>, cwd: String) {
410
413
self.parse_params(params);
-
414
if self.should_install() {
415
match self.cli.install_or_update() {
416
Ok(status) => {
@@ -424,10 +426,6 @@ impl Backend {
424
426
425
427
428
- if self.should_sync() {
429
- self.do_sync().await;
430
- }
431
432
433
fn should_install(&self) -> bool {
0 commit comments