Allow reloading database contents from the UI

Aperta
#4,432 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript, vscode

Direzione di ricerca

Traccia il menu contestuale accessibile con il clic destro dell'elemento dell'albero del database e le funzionalità esistenti di eliminazione/importazione. Inizia trovando il modo in cui quei comandi sostituiscono le voci del database, quindi aggiungi un percorso di ricaricamento manuale che aggiorni i contenuti dallo stesso file senza aggiungerlo nuovamente; il lavoro è completato quando è possibile interrogare i database aggiornati senza gli errori di apertura obsoleta descritti nell'issue.

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

Descrizione

enhancement VSCode

Is your feature request related to a problem? Please describe.
When writing queries I often throw them against a small toy application that contains exactly the cases I am trying to query for. As my queries evolve and new edge-cases appear I have to frequently make modifications to the project, and this means recompiling the database. Currently to make the extension properly work with the new database I have to remove the old one and use the file picker to add a "new" database with the same file path. CodeQL does not seem to like it when the database is changed while it is open, so not doing this results in it seizing up when querying to other unintuitive errors.

Describe the solution you'd like
An extra option in the database right-click menu that tells the extension "I want to re-load the data from disk" would be nice. It could probably be implemented on top of existing delete/import functionality.

Describe alternatives you've considered
The best fix for this would probably be somehow automatically notifying the extension when the database contents change, however I am not sure whether this can be easily implemented. Allowing the manual reload fixes 90% of the annoyance without being too invasive.

Additional context
I am open to implementing this myself and opening a PR. I have not worked on VSC extensions before, but I am willing to give it a shot.

Lingua principale
TypeScript
Stelle
539
Fork
240
Merge medio
2g 6h
PR unite (30g)
29

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 github/vscode-codeql

Tutte le issue di github/vscode-codeql

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.