PowerShell / PowerShell/PowerShellEditorServices
Request referenced files from the client instead of attempting to load from the language service
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 767
- Fork
- 266
- Merge medio
- 3g 16h
- PR unite (30g)
- 1
Descrizione
Currently any files that are referenced from an edited script (i.e. dot-source references) are being resolved and loaded by the language service. Since we want to target remote editing scenarios (language service running in a web service), we need to shift the file resolution responsibility to the client so that it can resolve files with respect to its own workspace.
This will require the introduction of new protocol request/response types which allow the server to request files from the client. The core PSES API will handle this behavior through an interface so that file resolver implementations can be chosen at runtime.
This bug in vscode-powershell should benefit from the improvement: https://github.com/PowerShell/vscode-powershell/issues/31
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando il modo in cui il servizio del linguaggio risolve attualmente i riferimenti dot-source e rivedi i tipi proposti di protocol request/response e l’interfaccia centrale PSES file-resolver. Il lavoro è completato quando il client risolve i file referenziati nel proprio workspace, il server li richiede tramite il protocollo e le implementazioni del resolver possono essere selezionate a runtime.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, powershell
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100