Skip to content

[TSServer] navto Does not Return Methods Assigned to Prototype #13875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mjbvz opened this issue Feb 3, 2017 · 0 comments
Closed

[TSServer] navto Does not Return Methods Assigned to Prototype #13875

mjbvz opened this issue Feb 3, 2017 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue VS Code Tracked There is a VS Code equivalent to this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Feb 3, 2017

From microsoft/vscode#19782

TypeScript Version: 2.1.5

Code

function myHello() {}

function MyComponent() {}
MyComponent.prototype.hello = function (){}

Make a navto request against TSServer with a search string of hello

Expected behavior:
Return entries for both hello and myHello

Actual behavior:
Only an entry for myHello is returned:

[Trace - 2:28:58 PM] Sending request: navto (247). Response expected: yes. Current queue length: 0
Arguments: {
    "file": "/Users/matb/projects/sand/xx/y.js",
    "searchValue": "hello"
}
[Trace - 2:28:58 PM] Response received: navto (247). Request took 42 ms. Success: true 
Result: [
    {
        "name": "myHello",
        "kind": "function",
        "file": "/Users/matb/projects/sand/xx/y.js",
        "start": {
            "line": 1,
            "offset": 1
        },
        "end": {
            "line": 1,
            "offset": 22
        },
        "matchKind": "substring"
    }
]
@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Feb 3, 2017
@mhegazy mhegazy added the Bug A bug in TypeScript label Aug 29, 2017
@mhegazy mhegazy assigned ghost Aug 29, 2017
@ghost ghost closed this as completed in #18154 Sep 7, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Sep 7, 2017
@mhegazy mhegazy added this to the TypeScript 2.6 milestone Sep 7, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
Development

No branches or pull requests

2 participants