@@ -175,8 +175,8 @@ namespace ts.server {
175175 kindModifiers : body . kindModifiers ,
176176 textSpan : this . decodeSpan ( body , fileName ) ,
177177 displayParts : [ { kind : "text" , text : body . displayString } ] ,
178- documentation : typeof body . documentation === "string" ? [ { kind : "text" , text : body . documentation } ] : body . documentation ,
179- tags : this . decodeLinkDisplayParts ( body . tags )
178+ documentation : [ { kind : "text" , text : body . documentation } ] ,
179+ tags : body . tags
180180 } ;
181181 }
182182
@@ -536,13 +536,6 @@ namespace ts.server {
536536 this . lineOffsetToPosition ( fileName , span . end , lineMap ) ) ;
537537 }
538538
539- private decodeLinkDisplayParts ( tags : ( protocol . JSDocTagInfo | JSDocTagInfo ) [ ] ) : JSDocTagInfo [ ] {
540- return tags . map ( tag => typeof tag . text === "string" ? {
541- ...tag ,
542- text : [ textPart ( tag . text ) ]
543- } : ( tag as JSDocTagInfo ) ) ;
544- }
545-
546539 getNameOrDottedNameSpan ( _fileName : string , _startPos : number , _endPos : number ) : TextSpan {
547540 return notImplemented ( ) ;
548541 }
@@ -561,10 +554,9 @@ namespace ts.server {
561554 return undefined ;
562555 }
563556
564- const { items : encodedItems , applicableSpan : encodedApplicableSpan , selectedItemIndex, argumentIndex, argumentCount } = response . body ;
557+ const { items, applicableSpan : encodedApplicableSpan , selectedItemIndex, argumentIndex, argumentCount } = response . body ;
565558
566- const applicableSpan = encodedApplicableSpan as unknown as TextSpan ;
567- const items = ( encodedItems as ( SignatureHelpItem | protocol . SignatureHelpItem ) [ ] ) . map ( item => ( { ...item , tags : this . decodeLinkDisplayParts ( item . tags ) } ) ) ;
559+ const applicableSpan = this . decodeSpan ( encodedApplicableSpan , fileName ) ;
568560
569561 return { items, applicableSpan, selectedItemIndex, argumentIndex, argumentCount } ;
570562 }
0 commit comments