René's URL Explorer Experiment


Title: Duplicate callsite ranges for a single method call in callHierarchy/outgoingCalls · Issue #65526 · microsoft/TypeScript · GitHub

Open Graph Title: Duplicate callsite ranges for a single method call in callHierarchy/outgoingCalls · Issue #65526 · microsoft/TypeScript

X Title: Duplicate callsite ranges for a single method call in callHierarchy/outgoingCalls · Issue #65526 · microsoft/TypeScript

Description: 🔎 Search Terms "callsite", "callHierarchy" 🕗 Version & Regression Information Version Observed result 6.0.2, 6.0.3 The LSP startup command is unsupported, repro script cannot determine whether duplicate ranges occur. 7.0.2 Duplicate rang...

Open Graph Description: 🔎 Search Terms "callsite", "callHierarchy" 🕗 Version & Regression Information Version Observed result 6.0.2, 6.0.3 The LSP startup command is unsupported, repro script cannot determine whether dupl...

X Description: 🔎 Search Terms "callsite", "callHierarchy" 🕗 Version & Regression Information Version Observed result 6.0.2, 6.0.3 The LSP startup command is unsupported, repro script canno...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/65526

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicate callsite ranges for a single method call in callHierarchy/outgoingCalls","articleBody":"### 🔎 Search Terms\n\n\"callsite\", \"callHierarchy\"\n\n### 🕗 Version & Regression Information\n\n| Version | Observed result |\n| --- | --- |\n| 6.0.2, 6.0.3 | The LSP startup command is unsupported, repro script cannot determine whether duplicate ranges occur. |\n| 7.0.2 | Duplicate ranges reproduced. |\n| 7.1.0-dev.20261116.1 | Duplicate ranges reproduced. |\n\n\n### ⏯ Playground Link\n\n_No response_\n\n### 💻 Code\n\n### Minimal reproduction\n\n```ts\ninterface G { m(): void; }\nfunction probe(g: G) { g.m(); }\n```\n\n### Steps to reproduce\n\nUse Node.js 22.21 or later and pnpm. In a new reproduction directory, install the pinned dependencies:\n\n```sh\nmkdir ts-call-hierarchy-repro\ncd ts-call-hierarchy-repro\npnpm add --save-exact typescript@7.0.2 vscode-jsonrpc@10.0.0\npnpm exec tsc --version\n```\n\nConfirm that the version output is `Version 7.0.2`. Save the following JavaScript as `repro.mjs` in that directory:\n\n```js\nimport assert from \"node:assert/strict\";\nimport { spawn } from \"node:child_process\";\nimport { mkdtemp, writeFile } from \"node:fs/promises\";\nimport { tmpdir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\nimport { createMessageConnection } from \"vscode-jsonrpc/node\";\n\nconst cwd = await mkdtemp(join(tmpdir(), \"ts-call-hierarchy-\"));\nconst text = \"interface G { m(): void; }\\nfunction probe(g: G) { g.m(); }\\n\";\n\nawait writeFile(join(cwd, \"repro.ts\"), text);\nawait writeFile(\n  join(cwd, \"tsconfig.json\"),\n  JSON.stringify({\n    compilerOptions: { noEmit: true, types: [] },\n    files: [\"repro.ts\"],\n  }),\n);\n\nconst server = spawn(\"tsc\", [\"--lsp\", \"--stdio\"], {\n  cwd,\n  stdio: [\"pipe\", \"pipe\", \"inherit\"],\n});\nconst serverExited = new Promise((resolve) => {\n  server.once(\"exit\", (code, signal) => resolve({ code, signal }));\n  server.once(\"error\", (error) => resolve({ error }));\n});\nconst rpc = createMessageConnection(server.stdout, server.stdin);\n\nrpc.onRequest(\"workspace/configuration\", ({ items }) => items.map(() => null));\nfor (const method of [\n  \"client/registerCapability\",\n  \"client/unregisterCapability\",\n  \"window/workDoneProgress/create\",\n]) {\n  rpc.onRequest(method, () => null);\n}\nrpc.listen();\n\nasync function withTimeout(promise, milliseconds, label) {\n  let timer;\n  try {\n    return await Promise.race([\n      promise,\n      new Promise((_, reject) => {\n        timer = setTimeout(() => reject(new Error(`Timeout: ${label}`)), milliseconds);\n      }),\n    ]);\n  } finally {\n    clearTimeout(timer);\n  }\n}\n\nasync function request(method, ...params) {\n  return await withTimeout(rpc.sendRequest(method, ...params), 15_000, method);\n}\n\ntry {\n  await request(\"initialize\", {\n    processId: null,\n    rootUri: pathToFileURL(cwd).href,\n    capabilities: {\n      workspace: {\n        didChangeWatchedFiles: { dynamicRegistration: true },\n      },\n    },\n  });\n  await rpc.sendNotification(\"initialized\", {});\n\n  const uri = pathToFileURL(join(cwd, \"repro.ts\")).href;\n  await rpc.sendNotification(\"textDocument/didOpen\", {\n    textDocument: { uri, languageId: \"typescript\", version: 1, text },\n  });\n\n  const [item] = await request(\"textDocument/prepareCallHierarchy\", {\n    textDocument: { uri },\n    position: { line: 1, character: 9 },\n  });\n  const result = await request(\"callHierarchy/outgoingCalls\", { item });\n  console.log(JSON.stringify(result));\n\n  assert.equal(result.length, 1);\n  assert.equal(result[0].to.name, \"m\");\n  const ranges = result[0].fromRanges;\n  assert.equal(ranges.length, 2);\n  assert.deepEqual(ranges[0], ranges[1]);\n  console.log(\"PASS: two identical ranges for one method call\");\n\n  await request(\"shutdown\");\n  await rpc.sendNotification(\"exit\");\n  const status = await withTimeout(serverExited, 5_000, \"server exit\");\n  if (status.error) throw status.error;\n  if (status.code === 0 && status.signal === null) {\n    console.log(\"Server shutdown completed (code 0)\");\n  } else {\n    console.error(`Server shutdown abnormal: code ${status.code}, signal ${status.signal}`);\n    process.exitCode = 1;\n  }\n} finally {\n  rpc.dispose();\n  if (server.pid && server.exitCode === null && server.signalCode === null) {\n    console.error(\"Terminating server after failure or shutdown timeout\");\n    if (!server.kill()) console.error(\"Failed to send termination signal to server\");\n  }\n}\n```\n\nRun it with:\n\n```sh\npnpm exec node repro.mjs\n```\n\n\n### 🙁 Actual behavior\n\nThe `callHierarchy/outgoingCalls` result contains one outgoing target named `m`, with two identical entries in `fromRanges` (excerpt):\n\n```json\n\"fromRanges\": [\n  {\n    \"start\": { \"line\": 1, \"character\": 23 },\n    \"end\": { \"line\": 1, \"character\": 26 }\n  },\n  {\n    \"start\": { \"line\": 1, \"character\": 23 },\n    \"end\": { \"line\": 1, \"character\": 26 }\n  }\n]\n```\n\nBoth entries identify the same `g.m` expression, from line 1, character 23 to line 1, character 26 (zero-based coordinates, exclusive end). There is only one method declaration and one method call.\n\n`PASS: two identical ranges for one method call` means that the script successfully reproduced the duplicate ranges, its assertions check the observed bug.\n\nIn both tested 7.x versions, after returning the query result and printing `PASS`, the server prints `context canceled` during shutdown and exits with code 1, which the script reports separately.\n\n\n### 🙂 Expected behavior\n\n`fromRanges` should contain a single entry for the single source occurrence.\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/char8x","@type":"Person","name":"char8x"},"datePublished":"2026-11-16T13:45:02Z","url":"https://github.com/microsoft/TypeScript/issues/65526"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:28e4b4f8-04b7-f6f1-3aa2-2299289e9997
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB10:11EACE:82F651:B0D621:6B00E177
html-safe-nonce78c8aaee566927d3c9153a87db9c12f669557fd451e8c5e1f2c5f9e63b893e53
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjEwOjExRUFDRTo4MkY2NTE6QjBENjIxOjZCMDBFMTc3IiwidmlzaXRvcl9pZCI6IjY2NDM0MzI0MDcxMDgyMTUxNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac63d84df509b84ccb3d007721c3a8470eb31f55c0e718841560baf25c0a98aeee
hovercard-subject-tagissue:6422582038
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/65526/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e555ee107331637db0db3dbc379c708f44cc72f9aa21195af1617030475fa550/microsoft/TypeScript/issues/65526
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e555ee107331637db0db3dbc379c708f44cc72f9aa21195af1617030475fa550/microsoft/TypeScript/issues/65526
og:image:alt🔎 Search Terms "callsite", "callHierarchy" 🕗 Version & Regression Information Version Observed result 6.0.2, 6.0.3 The LSP startup command is unsupported, repro script cannot determine whether dupl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechar8x
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/65526#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F65526
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F65526
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/65526
Reloadhttps://github.com/microsoft/TypeScript/issues/65526
Reloadhttps://github.com/microsoft/TypeScript/issues/65526
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/65526
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/65526
#65566https://github.com/microsoft/TypeScript/pull/65566
Duplicate callsite ranges for a single method call in callHierarchy/outgoingCallshttps://github.com/microsoft/TypeScript/issues/65526#top
#65566https://github.com/microsoft/TypeScript/pull/65566
https://github.com/DanielRosenwasser
https://github.com/copilot-swe-agent
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Symbol%20Navigation%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/char8x
Charles Xu (char8x)https://github.com/char8x
on Nov 16, 2026https://github.com/microsoft/TypeScript/issues/65526#issue-6422582038
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Symbol%20Navigation%22
on Nov 17, 2026https://github.com/microsoft/TypeScript/issues/65526#event-36443494520
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Nov 17, 2026https://github.com/microsoft/TypeScript/issues/65526#event-36443506174
https://github.com/zhengdaodeguL
刘亦达 (zhengdaodeguL)https://github.com/zhengdaodeguL
on Nov 17, 2026https://github.com/microsoft/TypeScript/issues/65526#issuecomment-6960686114
#65553https://github.com/microsoft/TypeScript/pull/65553
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Copilothttps://github.com/apps/copilot-swe-agent
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Nov 18, 2026https://github.com/microsoft/TypeScript/issues/65526#event-36570881677
Copilothttps://github.com/apps/copilot-swe-agent
Deduplicate call hierarchy call-site ranges #65566https://github.com/microsoft/TypeScript/pull/65566
on Nov 18, 2026https://github.com/microsoft/TypeScript/issues/65526#event-36570949012
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/65526
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/65526
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Copilothttps://github.com/apps/copilot-swe-agent
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Symbol%20Navigation%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.