# Bug Report <!-- Please fill in each section completely. Thank you! --> ### 🔎 Search Terms - ts check - quick fix - code action ### 🕗 Version & Regression Information 4.3.0-dev.20210228 ### 💻 Code For the javascript: ```JS //@ts-check add(1, 2); ``` Use `add missing function declaration` on `add` ### 🙁 Actual behavior The ts check comment is duplicated ```js //@ts-check add(1, 2); function //@ts-check add(arg0, arg1) { throw new Error("Function not implemented."); } ``` ### 🙂 Expected behavior ```js //@ts-check add(1, 2); function add(arg0, arg1) { throw new Error("Function not implemented."); } ```