PowerShell / PowerShell/PowerShellEditorServices
Add support for source maps
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 767
- Fork
- 266
- Merge trung bình
- 3 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Issue không nêu tên tệp, bài kiểm thử hoặc điểm bắt đầu nào. Hãy bắt đầu bằng việc xác định quá trình biên dịch module và cách debugger xử lý vị trí mã nguồn, sau đó xác định source map nên liên kết các vị trí psm1 đã biên dịch với các tệp ps1 ban đầu như thế nào. Phần hoàn thành cần bao gồm một định dạng mapping được xác định và hành vi của debugger, với phạm vi bao phủ cho các module được build vào thư mục Release.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- devtools
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100