Microsoft/TypeScript

Delete unused JSDoc quick fix changes formatting on rest of JSDoc comment

Open

#47,923 建立於 2022年2月16日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (6,726 fork)batch import
BugDomain: JSDocHelp Wanted

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

Bug Report

🔎 Search Terms

  • quick fix
  • code action
  • jsdoc

🕗 Version & Regression Information

4.7.0-dev.20220216

This is new behavior and not a regression

💻 Repo

  1. For the TypeScript:
/**
 * @param c
 * @param b
 * 
 * bla bla bla
 */
function add(a, b) { }
  1. Trigger the delete unused @param tag quick fix on c inside the JSDoc.

🙁 Actual behavior

This results in:

/**
 * @param b bla bla bla
 */
function add(a, b) { }

🙂 Expected behavior

I'd sped that only the @param c is removed and the rest of the jsdoc remains unchanged:

/**
 * @param b
 * 
 * bla bla bla
 */
function add(a, b) { }

Related issues

  • #47922

貢獻者指南