Skip to content

[TS]: Incorrect handling of JSDoc description of interface property #63149

@psnet

Description

@psnet

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.109.4
  • OS Version: Windows_NT x64 10
  • Commit: c3a26841a84f20dfe0850d0a5a9bd01da4f003ea

Steps to Reproduce:

  1. Write code that uses ScrollView jsx tag or navigate to file
    https://github.com/facebook/react-native/blob/db45c280e2f9702d27e1f4e321a8c554a4af6181/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts#L605-L620
  2. Hover mouse cursor over contentContainerStyle property (620 line)
  3. As results popup "eats" tags inside parentheses (...) of description:
These styles will be applied to the scroll view content container which wraps all of the child views. Example:

return ( ); ... const styles = StyleSheet.create({ contentContainer: { paddingVertical: 20 } });
  1. Exactly these lines:
    https://github.com/facebook/react-native/blob/db45c280e2f9702d27e1f4e321a8c554a4af6181/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts#L610-L611
    It should output all text:
   *   return (
   *     <ScrollView contentContainerStyle={styles.contentContainer}>
   *     </ScrollView>
   *   );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions