IssueRaiser

Include Default Parameter Values in Signature Help

<!-- BUGS: Please use this template. --> <!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --> <!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --> From https://github.com/Microsoft/vscode/issues/28925 **TypeScript Version:** 2.4.0 **Feature Request** `signatureHelp` current shows when a parameter is optional but does not include any information about that parameter's default value: ```ts function foo(x = 10) { } foo(|) ``` Result of TSServer `signatureHelp` on `foo` ``` [Trace - 5:42:22 PM] Response received: signatureHelp (378). Request took 20 ms. Success: true Result: { "items": [ { "isVariadic": false, "prefixDisplayParts": [ { "text": "foo", "kind": "functionName" }, { "text": "(", "kind": "punctuation" } ], "suffixDisplayParts": [ { "text": ")", "kind": "punctuation" }, { "text": ":", "kind": "punctuation" }, { "text": " ", "kind": "space" }, { "text": "void", "ki

Posted by mjbvz on Jun 21, 2017, 12:45 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

support (Software)

Include Default Parameter Values in Signature Help

mjbvzJun 21, 2017, 12:45 AM

<!-- BUGS: Please use this template. --> <!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --> <!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --> From https://github.com/Microsoft/vscode/issues/28925 **TypeScript Version:** 2.4.0 **Feature Request** `signatureHelp` current shows when a parameter is optional but does not include any information about that parameter's default value: ```ts function foo(x = 10) { } foo(|) ``` Result of TSServer `signatureHelp` on `foo` ``` [Trace - 5:42:22 PM] Response received: signatureHelp (378). Request took 20 ms. Success: true Result: { "items": [ { "isVariadic": false, "prefixDisplayParts": [ { "text": "foo", "kind": "functionName" }, { "text": "(", "kind": "punctuation" } ], "suffixDisplayParts": [ { "text": ")", "kind": "punctuation" }, { "text": ":", "kind": "punctuation" }, { "text": " ", "kind": "space" }, { "text": "void", "ki

Comments (0)

No comments yet. Start the discussion.

Comment on this issue