Skip to content

Commit

Permalink
fix: resolve typo in enum JsLspMessage (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: jaudiger <[email protected]>
  • Loading branch information
jaudiger authored Jul 31, 2024
1 parent 29d819a commit d09edd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/brioche-core/src/script/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl LanguageServer for BriocheLspServer {
tracing::info!("goto definition");
let response = self
.js_lsp
.send::<Option<Location>>(JsLspMessage::GotoDefintion(
.send::<Option<Location>>(JsLspMessage::GotoDefinition(
params.text_document_position_params.clone(),
))
.await;
Expand Down Expand Up @@ -615,7 +615,7 @@ fn js_lsp_task(
JsLspMessage::Diagnostic(params) => {
call_method_1(&mut js_runtime, &js_lsp, "diagnostic", &params)
}
JsLspMessage::GotoDefintion(params) => {
JsLspMessage::GotoDefinition(params) => {
call_method_1(&mut js_runtime, &js_lsp, "gotoDefinition", &params)
}
JsLspMessage::Hover(params) => {
Expand Down Expand Up @@ -720,7 +720,7 @@ fn call_method_1(
enum JsLspMessage {
Completion(CompletionParams),
Diagnostic(DocumentDiagnosticParams),
GotoDefintion(TextDocumentPositionParams),
GotoDefinition(TextDocumentPositionParams),
Hover(HoverParams),
DocumentHighlight(DocumentHighlightParams),
References(ReferenceParams),
Expand Down

0 comments on commit d09edd5

Please sign in to comment.