Title: VSCode doesn't respect sourceRoot in declarationMaps · Issue #25322 · microsoft/TypeScript · GitHub
Open Graph Title: VSCode doesn't respect sourceRoot in declarationMaps · Issue #25322 · microsoft/TypeScript
X Title: VSCode doesn't respect sourceRoot in declarationMaps · Issue #25322 · microsoft/TypeScript
Description: TypeScript Version: 2.9.2 I'm running into an issue when building declaration maps with gulp-typescript/gulp-sourcemaps. the output of gulp-sourcemaps does this: {"version":3,"sources":["BaseClass.ts"],"names":[],"mappings":"AAAA,kBAAU,U...
Open Graph Description: TypeScript Version: 2.9.2 I'm running into an issue when building declaration maps with gulp-typescript/gulp-sourcemaps. the output of gulp-sourcemaps does this: {"version":3,"sources":["BaseClass....
X Description: TypeScript Version: 2.9.2 I'm running into an issue when building declaration maps with gulp-typescript/gulp-sourcemaps. the output of gulp-sourcemaps does this: {"version":3,"so...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25322
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VSCode doesn't respect sourceRoot in declarationMaps","articleBody":"**TypeScript Version:** 2.9.2\r\n\r\n\r\nI'm running into an issue when building declaration maps with gulp-typescript/gulp-sourcemaps.\r\n\r\nthe output of gulp-sourcemaps does this:\r\n\r\n```\r\n{\"version\":3,\"sources\":[\"BaseClass.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,UAAU,CACpB;IACI;QAEI,OAAO,CAAC,UAAU,CAAS;;2BAOb,SAAS,EAAK,MAAM;QAK3B,WAAW,IAAI,IAAI;KAI7B;CACJ\",\"file\":\"Dependency.d.ts\",\"sourceRoot\":\"../../Dependency\"}\r\n```\r\n\r\nwhere the output of tsc does this:\r\n\r\n```\r\n{\"version\":3,\"file\":\"Dependency.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../Dependency/BaseClass.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,UAAU,CACpB;IACI;QAEI,OAAO,CAAC,UAAU,CAAS;;2BAOb,SAAS,EAAK,MAAM;QAK3B,WAAW,IAAI,IAAI;KAI7B;CACJ\"}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nVSCode should respect sourceRoot and find the source code\r\n\r\n**Actual behavior:**\r\n\r\nVSCode can't find the declaration when navigating.\r\n\r\nI can provide a simple repro if needed.\r\n\r\n**Note**\r\n\r\nIn VSCode, when you try to navigate it does nothing. In VS 15.8.0 Preview 3 it navigates to the d.ts file.","author":{"url":"https://github.com/michaelaird","@type":"Person","name":"michaelaird"},"datePublished":"2018-06-29T14:05:12Z","url":"https://github.com/microsoft/TypeScript/issues/25322"}
| 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:e43c6d42-eca2-c028-7a04-a3510879fa35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA58:2C69FC:4BB9C0:64EC2A:6B019B7A |
| html-safe-nonce | 93144f0ccbd94d87c3b4ca16fd4dc8900ca3f712b1b948ebc99ed52d2fe37559 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTU4OjJDNjlGQzo0QkI5QzA6NjRFQzJBOjZCMDE5QjdBIiwidmlzaXRvcl9pZCI6IjI3NzUzMDYxNDIxNzAwNjE2OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f92afee9cd4305cdd7d3f96231948d362aa90f9b27875cf762fab56059f2b72b |
| hovercard-subject-tag | issue:337012060 |
| 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/25322/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a2d327320e5033f0f3fd4a99f689d554c344edebb2fe2335a2067e1e3ab32ff/microsoft/TypeScript/issues/25322 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a2d327320e5033f0f3fd4a99f689d554c344edebb2fe2335a2067e1e3ab32ff/microsoft/TypeScript/issues/25322 |
| og:image:alt | TypeScript Version: 2.9.2 I'm running into an issue when building declaration maps with gulp-typescript/gulp-sourcemaps. the output of gulp-sourcemaps does this: {"version":3,"sources":["BaseClass.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michaelaird |
| 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