Skip to content

JSDoc comment templates/scaffolding may not use formatter newlines #52348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DanielRosenwasser opened this issue Jan 21, 2023 · 1 comment · Fixed by #52349
Closed

JSDoc comment templates/scaffolding may not use formatter newlines #52348

DanielRosenwasser opened this issue Jan 21, 2023 · 1 comment · Fixed by #52349
Labels
Domain: Formatter The issue relates to the built-in formatter Good First Issue Well scoped, documented and has the green light Help Wanted You can do this
Milestone

Comments

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Jan 21, 2023

Not that you should fix it in this PR, but it seems like a bug that we don't have this for JSDoc comments.

Originally posted by @jakebailey in #52298 (comment)

        return JsDoc.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host, /*formatSettings*/ undefined), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
@DanielRosenwasser DanielRosenwasser added Help Wanted You can do this Good First Issue Well scoped, documented and has the green light Domain: Formatter The issue relates to the built-in formatter labels Jan 21, 2023
@jakebailey
Copy link
Member

To clarify out of context, "this" is formatSettings. I think this is just a plumbing problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: Formatter The issue relates to the built-in formatter Good First Issue Well scoped, documented and has the green light Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants