Add JSDOC @module support for intellisense.
See original GitHub issueSearch Terms
Intellisense jsdoc support for modules
Suggestion
When adding /** @module moduleName Module Description. */
to a module, then doing this:
import * as myName from "./moduleName";
I think it makes sense, when importing the whole namespace, to include the jsdoc @module
comment.
I also think that when pressing Ctrl+Space for code completion on "./"
(to get a list of modules) should also show the module documentation.
Use Cases
Better support for module documentation. I’m developing some module libraries and it would be great to give end users a good experience with better intellisense documentation.
Examples
aModule.ts
`/** @module aModule Does something awesome. */`
app.ts
import * as aModule from "./aModule";
// (moduleName should both have the doc details)
// ("./{*.*}" - all files in code completion should show the documentation as well)
Checklist
My suggestion meets these guidelines:
- This wouldn’t be a breaking change in existing TypeScript/JavaScript code
- This wouldn’t change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn’t a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript’s Design Goals.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6
Top Results From Across the Web
Utilise JSDoc comment tags so that VSCode intellisense ...
How to utilise JSDoc comment tags so that Visual Studio Code intellisense works great. JSDoc is the standard for commenting in JavaScript code....
Read more >JSDoc: How do I let IntelliSense/TypeScript know about ...
I'm working on a relatively large project, and I want to add JSDoc to my classes and files to ...
Read more >Working with JavaScript in Visual Studio Code
Our JavaScript IntelliSense is powered by the JavaScript language service developed ... This document describes the JSDoc annotations currently supported.
Read more >How to use JsDoc annotations with VsCode for intellisense
VSCode has excellent support for many programming languages and if you do not like using products that are managed by Microsoft then you ......
Read more >JavaScript IntelliSense - Visual Studio (Windows)
IntelliSense based on JSDoc ... As mentioned, function parameters are never inferred. However, using the JSDoc @param tag you can add types to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also, quite annoyingly, the module doc comment is shown for the first member:
Playground link
connect-stream.js
detect-fighting.js
The jsdoc of the 3rd param in
detect-fighting.js
is not supported. You can write @callback but, again, the point is to avoid having to do that and having to keep it in sync with the actual function.