tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
624 stars 106 forks source link

Improve doc usability in editor #476

Open BurtHarris opened 4 years ago

BurtHarris commented 4 years ago
  1. The jsdoc comments in this package make heavy use of the {@link ...} feature. Unfortunately general support for this has been a longstanding wish list item for the TypeScript and VSCode teams, and there are problems implementing it as everyone would like. The results generated today for our jsdoc comments are not pretty.

  2. It might be good to provide a summary and separate details section, especially for some of the longer comments.

This tooltip screenshot demonstrates both problems: image

For reference, an example of how a tooltip for a well-known function (Array#slice) appears: image

This issue stands as a placeholder to provide at least some sort of workaround. For #1, it might be as simple as substituting markdown code formatting for the {@link...} instances.