posit-dev / posit-dev/positron

Session quickpick should order items by the last selected time

Open
#7,072 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: console theme: multisession console
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.