From d09edd5102d243d04fe12cb79e2f832c42bd7584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Audiger?= <31616285+jaudiger@users.noreply.github.com> Date: Wed, 31 Jul 2024 09:38:03 +0200 Subject: [PATCH] fix: resolve typo in enum JsLspMessage (#110) Signed-off-by: jaudiger --- crates/brioche-core/src/script/lsp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/brioche-core/src/script/lsp.rs b/crates/brioche-core/src/script/lsp.rs index ada4bf7..a7978bb 100644 --- a/crates/brioche-core/src/script/lsp.rs +++ b/crates/brioche-core/src/script/lsp.rs @@ -265,7 +265,7 @@ impl LanguageServer for BriocheLspServer { tracing::info!("goto definition"); let response = self .js_lsp - .send::>(JsLspMessage::GotoDefintion( + .send::>(JsLspMessage::GotoDefinition( params.text_document_position_params.clone(), )) .await; @@ -615,7 +615,7 @@ fn js_lsp_task( JsLspMessage::Diagnostic(params) => { call_method_1(&mut js_runtime, &js_lsp, "diagnostic", ¶ms) } - JsLspMessage::GotoDefintion(params) => { + JsLspMessage::GotoDefinition(params) => { call_method_1(&mut js_runtime, &js_lsp, "gotoDefinition", ¶ms) } JsLspMessage::Hover(params) => { @@ -720,7 +720,7 @@ fn call_method_1( enum JsLspMessage { Completion(CompletionParams), Diagnostic(DocumentDiagnosticParams), - GotoDefintion(TextDocumentPositionParams), + GotoDefinition(TextDocumentPositionParams), Hover(HoverParams), DocumentHighlight(DocumentHighlightParams), References(ReferenceParams),