PowerShell / PowerShell/PowerShellEditorServices
Add support for source maps
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 767
- フォーク
- 266
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 1
説明
One of the most common project layouts is to have every function in it's own ps1 file. When one of those projects gets at a certain size (very large, like dbatools) that can begin to affect the load time of the module. As a workaround, some of these modules will "compile" the ps1 files into a single psm1.
I think it would be a good idea to come up with a source map system so if we break somewhere in the compiled psm1 we could show the original source file instead.
This could also be useful for other projects who test against the "fully built" version of their module in a Release folder. I do this in a lot of my projects and often end up editing the temporary version of a file in Release because that's where the debugger put me.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue にはファイル、テスト、エントリーポイントが記載されていません。まずモジュールのコンパイルと debugger のソース位置処理を探し、次に source map がコンパイル済みの psm1 の位置を元の ps1 ファイルにどのように対応付けるべきかを決定してください。完了条件には、定義されたマッピング形式と debugger の動作を含め、Release フォルダーにビルドされたモジュールもカバーする必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100