This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ pub(crate) fn annotation(
105
105
106
106
match resolve. kind {
107
107
lsp_ext:: CodeLensResolveDataKind :: Impls ( params) => {
108
- if matches ! ( snap. url_file_version( & params. text_document_position_params. text_document. uri) , Some ( version) if version == resolve. version)
108
+ if snap. url_file_version ( & params. text_document_position_params . text_document . uri )
109
+ != Some ( resolve. version )
109
110
{
110
111
return Ok ( None ) ;
111
112
}
@@ -119,8 +120,7 @@ pub(crate) fn annotation(
119
120
} )
120
121
}
121
122
lsp_ext:: CodeLensResolveDataKind :: References ( params) => {
122
- if matches ! ( snap. url_file_version( & params. text_document. uri) , Some ( version) if version == resolve. version)
123
- {
123
+ if snap. url_file_version ( & params. text_document . uri ) != Some ( resolve. version ) {
124
124
return Ok ( None ) ;
125
125
}
126
126
let pos @ FilePosition { file_id, .. } = file_position ( snap, params) ?;
@@ -131,5 +131,6 @@ pub(crate) fn annotation(
131
131
kind : AnnotationKind :: HasReferences { pos, data : None } ,
132
132
} )
133
133
}
134
- } . map ( Some )
134
+ }
135
+ . map ( Some )
135
136
}
You can’t perform that action at this time.
0 commit comments