Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.63.2
- OS Version: Darwin x64 20.6.0
Steps to Reproduce:
- Write a JSDoc string with an example that involves a decorator:
class MyClass {
/**
* This is an example of a decorator.
*
* @example
* ```typescript
* import { MyClass } from '@org/myClass';
*
* const myClass = new MyClass();
*
* class MyAwesomeClass {
* @myClass.decorateMethod()
* public doStuff() {
* ...
* }
* }
*
* ```
*
* @decorator Class
*/
public decorateMethod(): MyType {
return (target, _propertyKey, descriptor) => {
const originalMethod = descriptor.value;
descriptor.value = ((event, context, callback) => {
return originalMethod?.apply(target, [ event, context, callback ]);
});
return descriptor;
};
}
}
- Use decorator / hover on method declaration:

As you can see from the screenshot above the example appears not to be rendered correctly with two main issues:
- Decorator is rendered on a new line & wrapped with
*
- All code indentation after the decorator is lost
Before opening this issue I've searched the repo (& the TypeScript one) and found a series of other issues. Most of them have been closed as duplicates or as fixed but as the above shows the issue is still there. Examples:
If the issue has been indeed fixed, could you please take a second to clarify what's the intended usage to allow VS Code to render decorators correctly? I'm aware that decorators are an experimental feature, if that's the reason why this is not supported could you please state it?
Thanks in advance.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
As you can see from the screenshot above the example appears not to be rendered correctly with two main issues:
*Before opening this issue I've searched the repo (& the TypeScript one) and found a series of other issues. Most of them have been closed as duplicates or as fixed but as the above shows the issue is still there. Examples:
@character (org package imports) #39371@exampleparsing when an at-sign@is used in the code-block. #38922If the issue has been indeed fixed, could you please take a second to clarify what's the intended usage to allow VS Code to render decorators correctly? I'm aware that decorators are an experimental feature, if that's the reason why this is not supported could you please state it?
Thanks in advance.