[Bug]: Open in VS Code on Windows opens empty unsaved file at workspace root instead of the nested file
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #14632 by @f-schnabel — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- desktop
Research direction
Start in apps/desktop by locating the file context-menu handler for Open in VS Code and inspect how the selected path is passed to the external editor. Reproduce on Windows with a nested file such as src/discord/events/interactionCreate/user.ts; done means VS Code opens that existing nested file rather than a basename-only unsaved file at the workspace root.
Written by the indexing model from the issue text.
Description
Area
apps/desktop
Description
On Windows, Open in VS Code from the file context menu opens an empty, unsaved file named after the file's basename (e.g. user.ts) in the workspace root, instead of opening the existing file at its real nested path. Looks like the file's path relative to the workspace is lost / only the basename is passed to the editor.
Steps to reproduce
- Open T3 Code 0.44 on Windows with a project at
E:\Programming\open-source\hogwarts-productivity-hub-bot. - Right-click the file
src/discord/events/interactionCreate/user.ts. - Select Open in VS Code.
Expected behavior
VS Code opens E:\Programming\open-source\hogwarts-productivity-hub-bot\src\discord\events\interactionCreate\user.ts.
Actual behavior
VS Code opens a new, empty, unsaved file whose path is E:\Programming\open-source\hogwarts-productivity-hub-bot\user.ts (workspace root + basename; the file does not exist there).
Impact
Major degradation: Open in VS Code is unusable for any file not in the project root.
Version and environment
- T3 Code desktop 0.44 (latest), Windows 11 Home 10.0.26200
- VS Code as external editor
Notes
- Opening a file by clicking it in-app works.
- Possibly related: #11780 (Reveal in File Explorer also fails on Windows); possibly the same path-resolution issue, not verified.
- Dominant language
- TypeScript
- Stars
- 24.8k
- Forks
- 6.4k
- Avg merge
- 7h 29m
- Merged PRs (30d)
- 223
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pingdotgg/t3code
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pingdotgg/t3code#15682 · 1 comment ·
Maintainers usually reply within 1 day
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pingdotgg/t3code#15659 · 1 comment ·
Maintainers usually reply within 1 day
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pingdotgg/t3code#15558 · 1 comment ·
Maintainers usually reply within 1 day
-
invalid via-triage
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
pingdotgg/t3code#15405 · 1 comment ·
Maintainers usually reply within 1 day
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pingdotgg/t3code#15380 · 1 comment ·
Maintainers usually reply within 1 day
All issues in pingdotgg/t3code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
ehmpathy/rhachet-roles-bhrain#586 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OHDSI/Data2Evidence#3496 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/rocketmq-dashboard#5594 ·
Maintainers usually reply within 3 days
-
react-doctor severity:warning tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 88/100
digidem/comapeo-cloud-app#418 ·
Maintainers usually reply within 1 day