File tree Expand file tree Collapse file tree
src/vs/editor/contrib/parameterHints Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,16 +263,16 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget {
263263 }
264264
265265 private hasDocs ( signature : modes . SignatureInformation , activeParameter : modes . ParameterInformation | undefined ) : boolean {
266- if ( activeParameter && typeof ( activeParameter . documentation ) === 'string' && activeParameter . documentation . length > 0 ) {
266+ if ( activeParameter && typeof activeParameter . documentation === 'string' && activeParameter . documentation . length > 0 ) {
267267 return true ;
268268 }
269- if ( activeParameter && typeof ( activeParameter . documentation ) === 'object' && activeParameter . documentation . value . length > 0 ) {
269+ if ( activeParameter && typeof activeParameter . documentation === 'object' && activeParameter . documentation . value . length > 0 ) {
270270 return true ;
271271 }
272- if ( typeof ( signature . documentation ) === 'string' && signature . documentation . length > 0 ) {
272+ if ( typeof signature . documentation === 'string' && signature . documentation . length > 0 ) {
273273 return true ;
274274 }
275- if ( typeof ( signature . documentation ) === 'object' && signature . documentation . value . length > 0 ) {
275+ if ( typeof signature . documentation === 'object' && signature . documentation . value . length > 0 ) {
276276 return true ;
277277 }
278278 return false ;
You can’t perform that action at this time.
0 commit comments