{"id":19589624,"url":"https://github.com/flolu/stackoverflow-typescript-go-to-definition","last_synced_at":"2026-02-12T21:03:00.440Z","repository":{"id":119944454,"uuid":"204985752","full_name":"flolu/stackoverflow-typescript-go-to-definition","owner":"flolu","description":"👉 Example Repository for Stackoverflow Question about VSCode and Typescript","archived":false,"fork":false,"pushed_at":"2022-11-10T11:38:29.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T12:33:46.002Z","etag":null,"topics":["javascript","monorepo","typescript","visualstudiocode","vscode","yarn"],"latest_commit_sha":null,"homepage":"https://stackoverflow.com/questions/57697571","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flolu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-28T17:22:14.000Z","updated_at":"2023-02-10T03:42:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f34038a-65d9-41be-91a5-c7b43f259d66","html_url":"https://github.com/flolu/stackoverflow-typescript-go-to-definition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flolu/stackoverflow-typescript-go-to-definition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fstackoverflow-typescript-go-to-definition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fstackoverflow-typescript-go-to-definition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fstackoverflow-typescript-go-to-definition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fstackoverflow-typescript-go-to-definition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flolu","download_url":"https://codeload.github.com/flolu/stackoverflow-typescript-go-to-definition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fstackoverflow-typescript-go-to-definition/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","monorepo","typescript","visualstudiocode","vscode","yarn"],"created_at":"2024-11-11T08:19:58.590Z","updated_at":"2026-02-12T21:03:00.435Z","avatar_url":"https://github.com/flolu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n\n```\nyarn bootstrap\n```\n\n# Gist\n\nAll source code file are written in Typescript (`.ts`) under `/src` folder.\n\nAll compiled files (`.js` and `.ts`) are located under `/dist` (those files are created by the typescript compiler)\n\n# Replicate Issue\n\n\u003e This issue happens in Visual Studio Code\n\n1. Run `yarn bootstrap`\n2. Open `/services/example-service/src/index.ts`\n3. Right click on `Food` and choose \"Go to Definition\"\n\n## Current behavior\n\nVSCode opens `/packages/example-package/dist/index.d.ts`\n\n## Expected behavior\n\nVSCode opens `/packages/example-package/src/index.ts`\n\n# Issue\n\nWhen I'm editing the typescript source code (in `/src`), I want to be able to click on any imported object via `right click + go to definition` or `F12` to jump to the definition in the respective packages' `/src` folder.\n\nBut what happens instead, is that it opens the `.d.ts` file in the `/dist` folder.\n\n\u003e Is it possible to change this behavior?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflolu%2Fstackoverflow-typescript-go-to-definition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflolu%2Fstackoverflow-typescript-go-to-definition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflolu%2Fstackoverflow-typescript-go-to-definition/lists"}