crystal-spider / jsdoc-generator Goto Github PK
View Code? Open in Web Editor NEWJSDoc automated generation.
Home Page: https://marketplace.visualstudio.com/items?itemName=crystal-spider.jsdoc-generator
License: GNU General Public License v3.0
JSDoc automated generation.
Home Page: https://marketplace.visualstudio.com/items?itemName=crystal-spider.jsdoc-generator
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
I like to vertically align my code when I can, having this bet a setting or supported feature would be a nice convenience for me.
Describe the solution you'd like
this documentation:
/**
* Description placeholder
* @date 9/30/2023
*
* @param {*} paramOne param description
* @param {*} ptwo param description
* @param {*} parameterThree param description
* @param {...{}} args param description
*
* @returns {boolean} return description
*/
would be aligned like this
/**
* Description placeholder
* @date 9/30/2023
*
* @param {*} paramOne param description
* @param {*} ptwo param description
* @param {*} parameterThree param description
* @param {...{}} args param description
*
* @returns {boolean} return description
*/
Describe alternatives you've considered
Either as a true/false option, or as some sort of format support for tags, similar to the Doxygen Document Generator extension.
Describe the bug
V2.0.1 missing comment terminator
To Reproduce
Steps to reproduce the behavior:
const run = (a) => {
console.log(a);
}
jsDoc generate
Expected behavior
Like v1.3.0, correct code comments
Screenshots
v1.3.0
v2.0.1
Additional context
Environment used
Typescript version: 5.3.3
VSC versione: 1.86.2
OS: Mac Darwin x64 23.2.0
Describe the bug
Use of semi colon instead of comma for objects
Bug
/**
* Description:- example variable for this issue
*
* @type {{ id: number; name: string; }}
*/
const example = {
id: 1,
name: 'Jon doe'
}
Expected behavior
/**
* Description:- example variable for this issue
*
* @type {{ id: number, name: string }}
*/
const example = {
id: 1,
name: 'Jon doe'
}
Additional context
Error on console while generating docs
ERROR: Unable to parse a tag's type expression for source file D:\Development\javascript project\jsDoc\assets\scripts\main.js in line 20 with tag
title "type" and text "{{ id: number; name: string; }}": Invalid type expression "{ id: number; name: string; }": Expected "!", "#", "$", "(", ",", "-", ".", "/", "0", ":", "<", "=", "?", "@", "[]", "\\", "_", "|", "}", "~", "", "", Unicode combining mark, Unicode decimal number, Unicode l
etter number, Unicode lowercase letter, Unicode modifier letter, Unicode other letter, Unicode punctuation connector, Unicode titlecase letter, Unicode uppercase letter, or [1-9] but ";" found.
Environment used
Typescript version: x.x.x
VSC versione: x.x.x
OS: [e.g. iOS]
Is your feature request related to a problem? Please describe.
When generating a new JSDoc with jsdoc-generator.includeDate enabled it uses American date format "mm/dd/yyyy", however, I code in both Japanese and British codebases, which use either "yyyy/mm/dd" or "dd/mm/yyyy", which requires a minor change on each generation.
Describe the solution you'd like
Ability to set the locale of the date format in the settings. I.e. a string in preferences which lists "mm/dd/yyyy"
Describe alternatives you've considered
I have considered editing the snippet directly or looking at basic snippets, but I miss features of this generator too much
Environment used
VSC version: 1.88.1
OS: Windows 10
Describe the bug
Multiline params are not recognized with typescript syntax highlighting
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An asterisk is inserted at each new line so the syntax highlighting works correctly
Additional context
See microsoft/vscode#108237
Environment used
Typescript version: 5.2.2
VSC version: 1.84.0-insider
OS: Windows 11
Is your feature request related to a problem? Please describe.
In Typescript, types are defined in code. Defining them again in jsdoc, may lead to inconsistenties when changing type in code, and forgetting to also update the jsdoc. Moreover, they are superfluous, as the editor doesn't need jsdoc to display types for intellisense popups.
Describe the solution you'd like
An option to enable adding types to generated jsdoc in .ts
and .tsx
files.
So that if a developer needs them, for example to generate separate documentation using a generator tool. I feel this option should be set to disabled by default, as adding types in jsdoc in typescript is technically superfluous.
Describe alternatives you've considered
N/A
Environment used
Typescript version: 4.9.3
VSC versione: 1.74.1
OS: Windows 10
Thank you for this extension! The only issue I've had with it is, after setting includeTypes to false, @typedef is still included in the JSDocs generated.
It would be great to have either:
If you would like, I can create a pull request for this. Thanks!
Dear All,
How can I integrate typescript Interface properties into jsdoc with this extension?
Like this:
/**
* @property {string[]} days - ...
* @property {WorksOfDaysOfEmployments} worksOfDaysOfEmployments - ...
*/
interface Matrix {
days: string[]
worksOfDaysOfEmployments: WorksOfDaysOfEmployments
}
Thanks: Bela
Describe the bug
The messages says: Correctly generated 19 JSDocs! but just on the last function was generated the comment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When try to generate comments for a file, it says it did 19 docs but just on last function the comment was added
Environment used
Typescript version: 4.9.5
VSC versione: 1.75.1
OS: Darwin x64 22.1.0
If I create my docs and view them, the links to the code and line number in github are 1 commit behind. I have to generate the docs again after pushing my commit, so the links link to the correct commit, so then I have to do yet another commit.
Is your feature request related to a problem? Please describe.
When JSDoc is generated from a function, @Exprot and @async are added.
I don't need @export and @async because I checked by the types instead of them.
Describe the solution you'd like
Add extension settings to exclude @export and @async
Environment used
Typescript version:4.5.5
VSC versione: 1.66.1
OS: Windows 11
I noticed that theres an existing issue for requesting Vue support, but once Vue is completed, can we have Svelte and Sveltekit file support aswell? Thanks
Thanks for the great extension! Is it possible to add support for .vue
files?
Hello!
I use Typescript with React.
The file extension is .tsx
The association for .tsx is "TypeScript React".
If I try to use "Generate JSDoc" I get the following error:
Unable to generate JSDoc: typescriptreact is not supported.
Can you fix this?
The code:
const sayHello = <N extends string>(name: N): `Hello, ${N}` => {
return `Hello, ${name}`;
};
Generating:
/**
* Description placeholder
*
* @template N
* @param {N} name
* @returns {`Hello, ${N}`}
*/
But should be
/**
* Description placeholder
*
* @template {string} N <-- extends string
* @param {N} name
* @returns {`Hello, ${N}`}
*/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.