From f01461e4f7d628842b19d81f94650a59cfa6e8ae Mon Sep 17 00:00:00 2001 From: Jeff Bencin Date: Wed, 18 Jun 2025 13:35:52 -0400 Subject: [PATCH] fix: Incorrect contract path in "Go to" reply from copy/paste error in previous PR --- components/clarity-lsp/src/common/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/clarity-lsp/src/common/state.rs b/components/clarity-lsp/src/common/state.rs index 1d7e0adc5..594830870 100644 --- a/components/clarity-lsp/src/common/state.rs +++ b/components/clarity-lsp/src/common/state.rs @@ -382,13 +382,13 @@ impl EditorState { { let public_definitions = get_public_function_definitions(expressions); return Some(Location { - uri: contract_location.try_into().ok()?, + uri: definition_contract_location.try_into().ok()?, range: *public_definitions.get(function_name)?, }); }; Some(Location { - uri: contract_location.try_into().ok()?, + uri: definition_contract_location.try_into().ok()?, range: *protocol .contracts .get(definition_contract_location)?