Skip to content

Refactor code to remove unused JSDoc types - #24300

Merged
Karthik Nadig (karthiknadig) merged 2 commits into
microsoft:mainfrom
bregwin:remove-types-jsdocs
Oct 14, 2024
Merged

Karthik Nadig (karthiknadig) merged 2 commits into
microsoft:mainfrom
bregwin:remove-types-jsdocs

Conversation

@bregwin

@bregwin Bregwin Jogi (bregwin) commented Oct 14, 2024 •

Copy link
Copy Markdown

Fixes #24077

Removes redundant type annotations from JSDocs in TypeScript files where the type is already inferred by TypeScript.

For example:
image

Here I removed JSDoc types but I still kept all the useful information.
I tried to be on the liberal side to avoid removing any comments that provide useful context or clarify behavior. If I missed any or if more can be removed, I’m happy to go over it again.

Additionally, if this issue only applies to a specific folder or scope, please let me know so I can make the necessary adjustments.

@bregwin

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@karthiknadig Karthik Nadig (karthiknadig) added the debt Code quality issues label Oct 14, 2024
@vs-code-engineering vs-code-engineering Bot added this to the October 2024 milestone Oct 14, 2024
@karthiknadig

Copy link
Copy Markdown
Member

Thanks for cleaning up the JSDocs. We will merge this after tests pass and review. Happy Coding!!

@anthonykim1

Copy link
Copy Markdown

Thank you for doing this brokoli777 :)

@karthiknadig
Karthik Nadig (karthiknadig) merged commit c5a8e4f into microsoft:main Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

3 participants