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

@RaymondLim

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions