Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

[fn param hints] Array type param is incorrectly shown as function type. #4747

Closed

Description

@RaymondLim
            /**
             *  Add an array of files to tern.
             *
             * @param {Array.<string>} files - each string in the array is the full
             * path of a file.
             */
            function handleAddFiles(files) {
                files.forEach(function (file) {
                    ternServer.addFile(file);
                });
            }
  1. Paste the above code in a js file.
  2. Type handleAddFiles( on a new line.
  3. Press Ctrl+Shift+Space to bring up param hint.

Result: function(Number):Object files shows up as param hint.
Expected It should show Array files.

Activity

  1. pthiess commented on Aug 13, 2013

    @pthiess
    Contributor

    @RaymondLim We don't put it into this sprint as the pull request card isn't right now.

  2. dangoor commented on Oct 4, 2013

    @dangoor
    Contributor

    This appears to be fixed. FBNC to @RaymondLim

  3. pthiess commented on Nov 18, 2013

    @pthiess
    Contributor

    HI @RaymondLim -- please regress this bug, thanks a lot -:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions