Bru*_*Sun 6 jsdoc typescript visual-studio-code
When working on a javascript/typescript project in VSCode, I want to write multi-line code in comment. Knowing that VSCode supports markdown syntax in comment, I go ahead and write:
/**
* ```ts
* { deliverQuestionClicked: { [pageNum]: false } }
* ```
*/
deliverQuestionClicked: {},
Run Code Online (Sandbox Code Playgroud)
However when I hover on that variable, VSCode renders the comment in a ugly looking way:

As the screenshot shown above, there're extra * that I don't want.
So I wonder what is the correct way to write multi-line code in comment?
I can confirm this problem doesn't exist in VSCode 1.49.1
Code:
class TopRow extends React.Component {
state = {
/**
* ```ts
* { deliverQuestionClicked: { [pageNum]: false } }
* ```
*/
deliverQuestionClicked: {},
};
}
Run Code Online (Sandbox Code Playgroud)
When I hover over that class property, it shows the JSDoc perfectly:

应该已经修好了。
在 VSC 1.48 中使用此代码
class TopRow {
state = {
/**
* ```ts
* { deliverQuestionClicked: { [pageNum]: false } }
* ```
*/
deliverQuestionClicked: {}
}
}
Run Code Online (Sandbox Code Playgroud)
我得到
| 归档时间: |
|
| 查看次数: |
1339 次 |
| 最近记录: |