Skip to content
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

Function doc always inserted at beginning of file #23

Open
tavurth opened this issue Feb 13, 2018 · 2 comments
Open

Function doc always inserted at beginning of file #23

tavurth opened this issue Feb 13, 2018 · 2 comments

Comments

@tavurth
Copy link

tavurth commented Feb 13, 2018

Running spacemacs & 25.2.2.

When I run the command js-doc-insert-function-doc or js-doc-insert-function-doc-snippet these snippets are always inserted at the beginning of the file.

The following code should reproduce this issue:

function myTestFunction(paramA, paramB)) {
}

const myTestFunctionTwo = (paramA, paramB) => {
}

When entering either function and running the above commands, the doc snippet will always be added at the top of the file.

@tavurth
Copy link
Author

tavurth commented Dec 11, 2018

This is likely a spacemacs issue, as it's fixed on their develop, but not working on the old master.

@cmatzenbach
Copy link

I am experiencing the same issue in vanilla emacs. Each of my files contains one exported class and no matter where I run the command to insert the doc comment, it is added to the beginning of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants