Skip to content

TS Intellisense hints for parameter defaults? #28925

Closed

Description

@sustained
  • VSCode Version: Code 1.13.0 (376c52b, 2017-06-08T16:41:25.571Z)
  • OS Version: Linux x64 4.10.8-100.fc24.x86_64
  • Extensions:
Extension Author Version
EditorConfig EditorConfig 0.9.3
sort-lines Tyriar 1.3.0
npm-intellisense christian-kohler 1.3.0
vscode-eslint dbaeumer 1.2.11
python donjayamanne 0.6.5
pgsql doublefint 0.0.8
vscode-npm-script eg2 0.2.0
vue jcbuisson 0.1.5
VBScript luggage66 0.0.1
csharp ms-vscode 1.10.0
debugger-for-chrome msjsdiag 3.1.4
addDocComments stevencl 0.0.8
better-align wwm 1.1.5

Expected:

VS Code shows default values in parameter hints.


Actual:

VS Code shows this instead:

download


Steps to Reproduce

  1. Paste example code into TS file.
    /**
     * Get the hash of the last git commit from the log.
     * 
     * @param {number} [length=7] Optionally cut the hash down to this length.
     */
    static getLastCommit(length : number = 7) : string {
        length = Math.min(32, Math.max(7, length));

        return execSync('git log -n 1 --pretty=format:"%H"', {
            cwd: Path.resolve(__dirname, '..'),
            encoding: 'utf8'
        }).substr(0, length);
    }

Activity

  1. changed the title [-]TS Hints for parameter defaults.[/-] [+]TS Intellisense hints for parameter defaults?[/+] on Jun 17, 2017
  2. added
    upstreamIssue identified as 'upstream' component related (exists outside of VS Code)
    feature-requestRequest for new features or functionality
    on Jun 21, 2017
  3. mjbvz commented on Jun 21, 2017

    @mjbvz
    Contributor

    Thanks. We would need TypeScript to add support for this. Opened microsoft/TypeScript#16665 to track this upstream

  4. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalitytypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions