Vscode: Stupid jsdoc completions

Created on 7 Sep 2017  ·  3Comments  ·  Source: microsoft/vscode

screen shot 2017-09-07 at 17 23 19

bug javascript typescript verified

Most helpful comment

That is a valid context for JSDoc comments in general:

Why? I'd expect that jsdoc is only used on symbol-declarations, like the declaration of Electron.SaveDialogOptions not every instantiation of it. The cursor is between the curly-brackets, nothing gets declared there, indeed nothing has been written there so for what symbol am I adding jsdoc comments?

All 3 comments

The cursor is inside the object literal, right? That is a valid context for JSDoc comments in general:

const a = {
    /**
     * Description
     */
    b: 1
}

That is a valid context for JSDoc comments in general:

Why? I'd expect that jsdoc is only used on symbol-declarations, like the declaration of Electron.SaveDialogOptions not every instantiation of it. The cursor is between the curly-brackets, nothing gets declared there, indeed nothing has been written there so for what symbol am I adding jsdoc comments?

image

image

This doesn't make sense, suggesting JSDoc everywhere and putting it as the first item simply because it starts with /.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrkiley picture mrkiley  ·  3Comments

vsccarl picture vsccarl  ·  3Comments

trstringer picture trstringer  ·  3Comments

lukehoban picture lukehoban  ·  3Comments

curtw picture curtw  ·  3Comments