PowerShell / PowerShell/vscode-powershell
$env:PSModulePath Question / Potential Issue
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 1.9k
- Fork
- 548
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm having an issue with Intellisense being very slow.
I've managed to whittle it down to VS Code loading modules over the network, so every time I hit tab, it goes off to the network share and does what it needs to do and then Intellisense works.
This can be up to 2 minutes at a time, however.
I removed the entry from $env:PSModulePath in the integrated VS Code terminal, fine, Intellisense is once again rapid and I can continue happily with my work, then around 30 seconds or so later, everything slows down again.
Lo and behold, the UNC of the file share is back in $env:PSModulePath! I've tested this in the ISE and do not get the same issue after removing the UNC share path.
Happy to submit logs if required, hoping there's just something I'm missing, however.
EDIT: It seems to be that when I hit tab or Intellisense trys to fire, it adds the UNC share path back to my $env:PSModulePath. Again tried with the ISE and don't get the same thing, so I believe this to be a bug.
SECOND EDIT: It appears to add the path back into $env:PSModulePath as soon as you click into the editor window.
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 riproducendo il report nel terminale PowerShell integrato di VS Code: rimuovi la voce UNC da $env:PSModulePath, fai clic nell'editor e attiva IntelliSense o il completamento con Tab. Esamina la gestione di PSModulePath e l'individuazione dei moduli da parte dell'estensione, confrontando il comportamento con ISE. Il lavoro è completato quando il percorso UNC non viene aggiunto nuovamente in modo imprevisto e IntelliSense non si blocca sulla condivisione di rete.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- powershell, typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100