PowerShell / PowerShell/PowerShellEditorServices

Add some form of error/output if $Profile does not exist or create one when Extension is installed

オープン
#224 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Issue-Enhancement
主要言語
C#
スター
767
フォーク
266
平均マージ
3日 16時間
マージ済み PR(30日)
1

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、言及されている $psEditor.Workspace.OpenFile($profile) の動作と Extension のインストールフローを追跡します。プロファイルが存在しない場合に、作成するのか、報告するのか、両方の経路で処理するのかを明確にします。完了とは、プロファイルが存在しないときに、ユーザーがフィードバックを受け取るか、使用可能なプロファイルを取得できることを意味します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell
領域
developer-experience, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。