PowerShell / PowerShell/PowerShellEditorServices
Add some form of error/output if $Profile does not exist or create one when Extension is installed
未关闭
还没有人认领这个 Issue。
Issue-Enhancement
- 主要语言
- C#
- 星标
- 767
- 派生
- 266
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪提到的 $psEditor.Workspace.OpenFile($profile) 行为和 Extension 安装流程。明确缺失的 profile 应该被创建、报告,还是由两条路径共同处理;完成的标准是,当 profile 不存在时,用户能收到反馈或获得一个可用的 profile。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- powershell
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100