Organize Imports removes first `@deprecated` JSDoc comment
Shinigami92 opened this issue ยท 0 comments
Shinigami92 commented
Bug Report
๐ Search Terms
- jsdoc
- organize imports
- exports
- deprecated
๐ Version & Regression Information
- This changed between versions 4.9.5 and 5.0
โฏ Playground Link
Playground link with relevant code
๐ป Code
export type {
/** @deprecated Use LocationDefinitions instead */
LocationDefinitions as AddressDefinitions,
LocationDefinitions,
/** @deprecated Use PersonDefinitions instead */
PersonDefinitions as NameDefinitions,
PersonDefinitions,
/** @deprecated Use PersonTitleDefinitions instead */
PersonTitleDefinitions as NameTitleDefinitions,
PersonTitleDefinitions,
} from './definitions';
export type {
/** @deprecated Use CssFunctionType instead */
CssFunctionType as CSSFunction,
CssFunctionType,
/** @deprecated Use CssSpaceType instead */
CssSpaceType as CSSSpace,
CssSpaceType,
} from './modules/color';
๐ Actual behavior
The first JSDoc comment gets removed when executing Organize Imports
export type {
LocationDefinitions as AddressDefinitions,
LocationDefinitions,
/** @deprecated Use PersonDefinitions instead */
PersonDefinitions as NameDefinitions,
PersonDefinitions,
/** @deprecated Use PersonTitleDefinitions instead */
PersonTitleDefinitions as NameTitleDefinitions,
PersonTitleDefinitions,
} from './definitions';
export type {
/** @deprecated Use CssFunctionType instead */
CssFunctionType as CSSFunction,
CssFunctionType,
/** @deprecated Use CssSpaceType instead */
CssSpaceType as CSSSpace,
CssSpaceType,
} from './modules/color';
๐ Expected behavior
The comment should not get removed
export type {
/** @deprecated Use LocationDefinitions instead */
LocationDefinitions as AddressDefinitions,
LocationDefinitions,
/** @deprecated Use PersonDefinitions instead */
PersonDefinitions as NameDefinitions,
PersonDefinitions,
/** @deprecated Use PersonTitleDefinitions instead */
PersonTitleDefinitions as NameTitleDefinitions,
PersonTitleDefinitions,
} from './definitions';
export type {
/** @deprecated Use CssFunctionType instead */
CssFunctionType as CSSFunction,
CssFunctionType,
/** @deprecated Use CssSpaceType instead */
CssSpaceType as CSSSpace,
CssSpaceType,
} from './modules/color';