File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,6 @@ print(foo)
114
114
assert_matches ! (
115
115
goto_definition( & doc, params) . unwrap( ) ,
116
116
Some ( GotoDefinitionResponse :: Link ( ref links) ) => {
117
- assert!( !links. is_empty( ) ) ;
118
- assert_eq!( links[ 0 ] . target_uri, Url :: from_file_path( & path) . unwrap( ) ) ;
119
-
120
117
assert_eq!(
121
118
links[ 0 ] . target_range,
122
119
lsp_types:: Range {
@@ -155,14 +152,6 @@ print(foo)
155
152
assert_matches ! (
156
153
goto_definition( & doc, params) . unwrap( ) ,
157
154
Some ( lsp_types:: GotoDefinitionResponse :: Link ( ref links) ) => {
158
- assert!( !links. is_empty( ) ) ;
159
-
160
- let link = & links[ 0 ] ;
161
- assert_eq!(
162
- link. target_uri,
163
- lsp_types:: Url :: from_file_path( & path) . unwrap( )
164
- ) ;
165
-
166
155
// The section should is not the target, the variable has priority
167
156
assert_eq!(
168
157
links[ 0 ] . target_range,
You can’t perform that action at this time.
0 commit comments