PowerShell / PowerShell/PowerShellEditorServices

Consider disabling module auto-loading during IntelliSense

未关闭
#438 8 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Area-IntelliSense Issue-Performance
主要语言
C#
星标
767
派生
266
平均合并
3 天 16 小时
30 天内合并 PR
1

描述

Module auto-loading during IntelliSense is causing some issues for people, including session hangs and IntelliSense slowness. We use Get-Command to gather information about the currently active IntelliSense result. This causes the module containing the command to get loaded, and if the module misbehaves somehow, it can damage the rest of the session.

We should consider setting the $PSModuleAutoLoadingPreference to "none" before running Get-Command so that IntelliSense details are only gathered for modules that the user has loaded. To make sure we have cmdlet signature details, we could potentially just parse the tooltips of the completions if they're available without loading the module.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先跟踪使用 Get-Command 收集当前补全结果详细信息的 IntelliSense 路径。确定如何在保留可用 cmdlet 签名详细信息的同时,防止该查询加载模块;当 IntelliSense 不再因模块自动加载而导致会话挂起或变慢时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, powershell
领域
developer-experience, tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。