REditorSupport / REditorSupport/vscode-R

R session background connections

Aperta
#440 10 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

engineering feature-request
Lingua principale
TypeScript
Stelle
1.2k
Fork
139
Merge medio
2h 46m
PR unite (30g)
5

Descrizione

In #394, notebook.R runs a socket connection that the notebook communicates with. Would it be worth extracting part of this out so that a socket connection is available for each R session started by the user? This would make the following possible:

  • Sending VS Code's R commands to the session invisibly, rather than having to send them as text to the console
  • Querying the session, for example to get the names of data frames
  • For Run Selection/Line, potentially using R instead of TypeScript to choose which lines to send (allowing use of R's parse functions)
  • Inline evaluation (sending user code to the session invisibly, and displaying the results in the editor) - this one's not really necessary but some other languages/IDE's have it and it's kind of cool

@renkun-ken You wrote notebook.R and the session watcher, which has some overlap with this proposal, so you're definitely the best person to comment. Does this sound practical? Let me know if I need to clarify anything.

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.

Direzione di ricerca

Inizia leggendo notebook.R e il lavoro su session watcher a cui si fa riferimento in #394, quindi esamina i casi d’uso proposti per i socket per sessione. L’issue richiede un ambito definito e una progettazione pratica prima che possa iniziare l’implementazione; sarebbe considerata completata quando fosse stato concordato un approccio per le connessioni di sessione e i comandi supportati da esse.

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

Valutazione

Stack tecnologico
r, typescript, vscode
Ambito
developer-experience, tooling
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.