Skip to content

Commit 4823038

Browse files
committed
Fix failing sway-lsp test
1 parent 30ebc21 commit 4823038

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sway-lsp/tests/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ fn go_to_definition_for_consts() {
11181118
)
11191119
.await;
11201120

1121-
// value: TyExpression
1121+
// value: TyExpression: `ContractId`
11221122
let mut contract_go_to = GotoDefinition {
11231123
req_uri: &uri,
11241124
req_line: 9,
@@ -1130,8 +1130,9 @@ fn go_to_definition_for_consts() {
11301130
};
11311131
lsp::definition_check(&server, &contract_go_to).await;
11321132

1133+
// value: `from`
11331134
contract_go_to.req_char = 34;
1134-
contract_go_to.def_line = 70;
1135+
contract_go_to.def_line = 62;
11351136
contract_go_to.def_start_char = 7;
11361137
contract_go_to.def_end_char = 11;
11371138
lsp::definition_check(&server, &contract_go_to).await;

0 commit comments

Comments
 (0)