Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover documentation for JSX (like for HTML) #47300

Closed
mlntr opened this issue Dec 23, 2021 · 3 comments
Closed

Hover documentation for JSX (like for HTML) #47300

mlntr opened this issue Dec 23, 2021 · 3 comments
Labels
External Relates to another program, environment, or user action which we cannot control.

Comments

@mlntr
Copy link

mlntr commented Dec 23, 2021

Upon hover, elements and attributes in HTML files display a small documentation window with the HTML info. This can be useful as a reminder.

JSX should have this too, as it'd be more helpful than what is currently displayed.

Currently this is displayed (JSX):
image

This could be augmented or replaced with the HTML info. Suggestion:
image

@ghost ghost assigned mjbvz Dec 23, 2021
@mjbvz mjbvz transferred this issue from microsoft/vscode Jan 3, 2022
@mjbvz mjbvz removed their assignment Jan 3, 2022
@mjbvz
Copy link
Contributor

mjbvz commented Jan 3, 2022

Related to #44204

@RyanCavanaugh RyanCavanaugh added the External Relates to another program, environment, or user action which we cannot control. label Jan 4, 2022
@RyanCavanaugh
Copy link
Member

This is already supported, it's just that the React definition files don't provide these comments.

declare var React: any;
namespace JSX {
  export interface IntrinsicElements {
    /**
     * Is a neat thing
     */
    thing: any;
  }
}
// Works on hover
const p = <thing></thing>;

@typescript-bot
Copy link
Collaborator

This issue has been marked as 'External' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Relates to another program, environment, or user action which we cannot control.
Projects
None yet
Development

No branches or pull requests

4 participants