PowerShell / PowerShell/PowerShellEditorServices
Add some form of error/output if $Profile does not exist or create one when Extension is installed
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ả
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.
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
Bắt đầu bằng cách theo dõi hành vi đã đề cập của $psEditor.Workspace.OpenFile($profile) và luồng cài đặt Extension. Làm rõ liệu một profile bị thiếu nên được tạo, báo cáo hay được xử lý bởi cả hai đường dẫn; hoàn tất có nghĩa là người dùng nhận được phản hồi hoặc có được một profile có thể sử dụng khi nó không tồn tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- powershell
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100