Skip to content
This repository has been 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
RaymondLim opened this issue Aug 11, 2013 · 3 comments
Closed
Assignees
Milestone

Comments

@RaymondLim
Copy link
Contributor

            /**
             *  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.

@pthiess
Copy link
Contributor

pthiess commented Aug 13, 2013

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

@ghost ghost assigned RaymondLim Aug 13, 2013
@dangoor
Copy link
Contributor

dangoor commented Oct 4, 2013

This appears to be fixed. FBNC to @RaymondLim

@pthiess
Copy link
Contributor

pthiess commented Nov 18, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants