Add a line in the activity bar between Positron icons and extension icons

Aperta
#17,518 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start with the activity bar and the view container (view group) registration, and find where the icon order is decided. Work behind the workbench.experimental.uiRevamp flag. Done when a separator sits between Positron's built-in and Posit extension icons and other extensions' icons, and no icon is hidden. Confirm the drag-across-separator behavior with maintainers first, since it is an open question.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: ui usability

Part of #17419. Behind workbench.experimental.uiRevamp.

Terms

  • Primary side bar: the side bar on the left of the window.
  • Activity bar: the column of icons beside the primary side bar.
  • View group: one or more views that open together, like Explorer or Source Control. Each view group in the primary side bar has one icon in the activity bar. VS Code calls a view group a view container.

Summary

Add a separator line to the activity bar. Icons for view groups built into Positron sit above the separator line. Icons for view groups that extensions add sit below the separator line.

Why

The activity bar mixes icons for Positron's own view groups with icons for view groups from extensions, in one list. The list gets longer with every extension a user installs. Nothing tells the user which icons are part of Positron and which icons came from an extension. Users who want fewer icons today have to hide icons one by one, which can hide features the user needs later.

A separator line keeps every icon where users can reach it, and makes a long activity bar easier to scan.

Proposed behavior

  • A horizontal separator line in the activity bar divides the icons into two sets.
  • Above the separator line: icons for view groups that are part of Positron. That covers view groups built into Positron, such as Explorer, Search, Source Control, Run and Debug, Data Connections, Packages, and Extensions. It also covers view groups from Posit's own extensions, such as Posit Publisher and Posit Assistant.
  • Below the separator line: icons for view groups that other extensions add, such as GitHub Pull Requests.
  • When the user installs an extension that adds a view group, the new icon goes below the separator line. Posit's own extensions are the exception, and their icons go above the separator line.
  • When the activity bar is at the top of the window, the separator line is vertical.
  • The user can drag an icon across the separator line.
  • Only the activity bar gets a separator line. The tabs in the secondary side bar and the bottom panel do not.
  • This change does not hide or remove any icon.

Open questions

  • When the user drags an icon across the separator line, does the separator line move, or does the icon join the other set? This is a technical question to answer during implementation.
Lingua principale
TypeScript
Stelle
4.4k
Fork
207
Merge medio
1g 7h
PR unite (30g)
341

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/positron

Tutte le issue di posit-dev/positron

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.