posit-dev / posit-dev/positron
Session quickpick should order items by the last selected time
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
Several mechanisms in the multisession environment sort sessions & runtimes based on the ILanguageRuntimeSession.lastUsed attribute.
Currently, the semantics of this is the last time code was executed. However, some use cases (e.g., the "Create a Session" quickpick) lend themselves to ordering by the last time a session was selected - regardless of whether code was executed.
This issue proposes to update the lastUsed attribute when a session is brought to the foreground, in addition to when code is executed. The attribute is currently used minimally (session enumeration & workspace session saving) so impacts should be minimal.
cc: @midleman
Contributor 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.
Research direction
Start by tracing ILanguageRuntimeSession.lastUsed and the code that brings a session to the foreground. Review its uses in session enumeration and workspace session saving, then verify that foreground selection updates the timestamp and the Create a Session quickpick orders sessions by that selection time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop, developer-experience
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100