File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -227,11 +227,17 @@ function extractTypeSignature(hovers: vscode.Hover[] | undefined): object {
227227 if ( match ) {
228228 const lines = match [ 1 ] . trim ( ) . split ( "\n" ) . filter ( l => {
229229 const trimmed = l . trim ( ) ;
230- if ( trimmed . length === 0 ) return false ;
230+ if ( trimmed . length === 0 ) {
231+ return false ;
232+ }
231233 // Strip Javadoc and block comment lines
232- if ( trimmed . startsWith ( "/**" ) || trimmed . startsWith ( "*/" ) || trimmed . startsWith ( "* " ) || trimmed === "*" ) return false ;
234+ if ( trimmed . startsWith ( "/**" ) || trimmed . startsWith ( "*/" ) || trimmed . startsWith ( "* " ) || trimmed === "*" ) {
235+ return false ;
236+ }
233237 // Strip single-line comments
234- if ( trimmed . startsWith ( "//" ) ) return false ;
238+ if ( trimmed . startsWith ( "//" ) ) {
239+ return false ;
240+ }
235241 return true ;
236242 } ) ;
237243 return { type : lines . join ( "\n" ) } ;
You can’t perform that action at this time.
0 commit comments