PowerShell / PowerShell/PowerShellEditorServices
Add some form of error/output if $Profile does not exist or create one when Extension is installed
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 767
- Forks
- 266
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
When running the following command you get no results by default:
$psEditor.Workspace.OpenFile($profile)
$profile outputs this
PS C:\Program Files (x86)\Microsoft VS Code Insiders
$profile
C:\Users\i2871rbp\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
However, the file does not actually exist, so when you try to have code open it, it does nothing and gives no feedback.
Can the EditorServices check for the profile and create it if it is missing upon installation? I am just thinking from an ease of use for normal powershell users who may not have a ton of Dev type experience, it might be a bad experience for them.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das erwähnte Verhalten von $psEditor.Workspace.OpenFile($profile) und den Installationsablauf von Extension nachzuverfolgen. Kläre, ob ein fehlendes Profil erstellt, gemeldet oder von beiden Pfaden behandelt werden sollte; abgeschlossen bedeutet, dass Benutzer Feedback erhalten oder ein verwendbares Profil bekommen, wenn es nicht existiert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100