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

wrong point position after insert js-doc-insert-function-doc #13

Open
futurist opened this issue May 16, 2016 · 5 comments
Open

wrong point position after insert js-doc-insert-function-doc #13

futurist opened this issue May 16, 2016 · 5 comments

Comments

@futurist
Copy link

as titled. below image:
2016-05-16_111830

Cursor point should be in the SPC position(red) in second line

@blaenk
Copy link
Contributor

blaenk commented Jun 30, 2016

Yeah I was wondering if I was the only one.

blaenk added a commit to blaenk/js-doc that referenced this issue Jul 8, 2016
@blaenk
Copy link
Contributor

blaenk commented Jul 8, 2016

Try my attempt of fixing this at #14. It works for me so far.

@blaenk
Copy link
Contributor

blaenk commented Jul 8, 2016

IMO it would be nice if there were an option to leverage something like yasnippet so we could jump from one point to the next, i.e. from description line to each param to return line etc.

@blaenk
Copy link
Contributor

blaenk commented Jul 13, 2016

@futurist You may be interested in #16.

@peterbecich
Copy link

peterbecich commented Dec 1, 2016

This package is exactly what I was hoping for -- thanks!

I encounter a similar issue:

export default async function(req, res) {
export default async /**
		      * 
		      * @param {} req
		      * @param {} res
		      * @returns {} 
		      */
function(req, res) {

I believe M-x js-doc-insert-function-doc should place the template comment before export. I suppose there are many possible modifiers of function, and I do not know them all.

Thanks!

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

3 participants