Title: [TSServer] navto Does not Return Methods Assigned to Prototype · Issue #13875 · microsoft/TypeScript · GitHub
Open Graph Title: [TSServer] navto Does not Return Methods Assigned to Prototype · Issue #13875 · microsoft/TypeScript
X Title: [TSServer] navto Does not Return Methods Assigned to Prototype · Issue #13875 · microsoft/TypeScript
Description: 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:...
Open Graph Description: 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 s...
X Description: 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 s...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/13875
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[TSServer] navto Does not Return Methods Assigned to Prototype","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\nFrom https://github.com/Microsoft/vscode/issues/19782\r\n\r\n**TypeScript Version:** 2.1.5 \r\n\r\n\r\n**Code**\r\n\r\n```ts\r\nfunction myHello() {}\r\n\r\nfunction MyComponent() {}\r\nMyComponent.prototype.hello = function (){}\r\n```\r\n\r\nMake a `navto` request against TSServer with a search string of `hello`\r\n\r\n**Expected behavior:**\r\nReturn entries for both `hello` and `myHello`\r\n\r\n**Actual behavior:**\r\nOnly an entry for `myHello` is returned:\r\n\r\n\r\n```\r\n[Trace - 2:28:58 PM] Sending request: navto (247). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/Users/matb/projects/sand/xx/y.js\",\r\n \"searchValue\": \"hello\"\r\n}\r\n[Trace - 2:28:58 PM] Response received: navto (247). Request took 42 ms. Success: true \r\nResult: [\r\n {\r\n \"name\": \"myHello\",\r\n \"kind\": \"function\",\r\n \"file\": \"/Users/matb/projects/sand/xx/y.js\",\r\n \"start\": {\r\n \"line\": 1,\r\n \"offset\": 1\r\n },\r\n \"end\": {\r\n \"line\": 1,\r\n \"offset\": 22\r\n },\r\n \"matchKind\": \"substring\"\r\n }\r\n]","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2017-02-03T22:31:20Z","url":"https://github.com/microsoft/TypeScript/issues/13875"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8bddf60-a223-d722-a047-3bbb3e2f24c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E01C:23CF06:249B334:2EA1018:6B017752 |
| html-safe-nonce | 27c85930701290ed43c6fce17ba42667f44056cf24ffdf7c0d72ca93aa0c547c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDFDOjIzQ0YwNjoyNDlCMzM0OjJFQTEwMTg6NkIwMTc3NTIiLCJ2aXNpdG9yX2lkIjoiNjI1NTI4MjQyNTcyMzcxMzM2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 28e1a6402a2784a37c158246c654eb988f7da5a289529e158e6ea20d9ac342e9 |
| hovercard-subject-tag | issue:205287236 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/13875/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e6204498a83a4f5559deeaed3c86eb71d539ef30e7962577b4be8b5e7f99179/microsoft/TypeScript/issues/13875 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e6204498a83a4f5559deeaed3c86eb71d539ef30e7962577b4be8b5e7f99179/microsoft/TypeScript/issues/13875 |
| og:image:alt | 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 s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width