Skip to content
This repository was archived by the owner on Feb 24, 2022. It is now read-only.
This repository was archived by the owner on Feb 24, 2022. It is now read-only.

Content assist does not work it returned type is defined further down the script #303

@nknapp

Description

@nknapp

Consider the following code snippet:

var MyObj1 = function() { };
MyObj1.prototype.myFunction1 = function() { };

/**
 * @return {MyObj1}
 **/
function obj1() {
    return 
}

 /**
 * @return {MyObj2}
 **/
function obj2() {
    return 
}


var MyObj2 = function() { };
MyObj2.prototype.myFunction2 = function() { };

Below this code, I enter obj1(). and hit Ctrl+Space and Content-Assist to complete the statement with myFunction1(), which is correct.

When I enter obj2(). and hit Ctrl+Space, Content-Assist does not suggest myFunction2(),
which it should do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions