Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Configure variables view presentation of `len()`

Aperta
#1,581 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
devtools

Direzione di ricerca

Inizia esaminando la configurazione esistente di variablePresentation dell’issue e il modo in cui la voce automatica len() appare nella vista delle variabili. Determina se il comportamento richiesto rientra in questo progetto o nel client del debugger circostante. Il lavoro è completato quando esiste una configurazione chiaramente specificata e supportata per il comportamento di presentazione richiesto.

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

Descrizione

So there is "variablePresentation" to configure hiding/grouping etc función kinds.

Note that there is no global way to set it yet https://github.com/microsoft/vscode-python-debugger/issues/165, but it can be done per launch config.

I was wondering if there was a way to configure the automomatic call to len() that appears at the end.
image

Something like:

  • Hiding it, i.g. reduce vertical space usage for many small lists
  • Moving it at the top, i.e. making it visible without having to open the collapsible region
  • Or a bit more involved config:
    • Showing it only when the full list of elements are hidden (over 100... etc) (bwt can this amount shown be configured?)
    • Move it to the top, but when the variable is expanded hide it from the list and replace the text next to the variable name (reduce redundant data):
      image

Probably there are other functions similar to len() that get called but I cannot recall right now.
So I guess those could be affected by these options too.

Best regards!

Lingua principale
Python
Stelle
2.5k
Fork
202
Merge medio
5g 1h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

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 microsoft/debugpy

Tutte le issue di microsoft/debugpy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.