Tab opened in a wrong window
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 516
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
Consider the following sequence of actions:
- Start DrRacket
- Open a Racket file (say,
a.rkt) in a tab via File > Open (with "Open files in separate tabs" on) - Open a new window
- Switch back to the previous window (that has
a.rkt) - Open a Racket file (say,
b.rkt)
I expect that b.rkt will be be in the same window as a.rkt, but it's not.
IIUC, this is due to how open-drscheme-window tries to open a new tab in newest-frame, which is set to the most recent created window. I don't understand why that's a desirable behavior however.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the five-step sequence in the issue, then inspect the open-drscheme-window entry point and how newest-frame is selected. Confirm the behavior when switching between windows, and consider the issue complete when opening b.rkt places it in the active window with a.rkt.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100