豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Slash command telemetry cleanup#4790

Merged
pwang347 merged 6 commits intomainfrom
pawang/slashCommandTelemetryCleanup
Mar 28, 2026
Merged

Slash command telemetry cleanup#4790
pwang347 merged 6 commits intomainfrom
pawang/slashCommandTelemetryCleanup

Conversation

@pwang347
Copy link
Copy Markdown
Member

No description provided.

@pwang347 pwang347 marked this pull request as ready for review March 27, 2026 23:45
Copilot AI review requested due to automatic review settings March 27, 2026 23:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors prompt-file slash command handling so both prompt generation (panel) and telemetry use a shared parser, while removing now-unneeded extension prompt-file lookup APIs from the custom-instructions service.

Changes:

  • Moved prompt-file slash command ID derivation + parsing into chatVariablesCollection.ts and updated panel prompt rendering to use it.
  • Updated panel request telemetry to derive slash command info from parsed prompt-file references and hash user-defined commands.
  • Removed getExtensionPromptFileInfo and narrowed getExtensionSkillInfo’s public return type in ICustomInstructionsService.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/platform/customInstructions/common/customInstructionsService.ts Removes extension prompt-file info API and narrows extension skill info shape exposed by the interface.
src/extension/prompts/node/panel/test/chatVariablesHelpers.spec.ts Updates tests to use shared slash command parsing utilities and adds coverage for parseSlashCommand.
src/extension/prompts/node/panel/chatVariables.tsx Switches slash command user-message rewriting to the shared parseSlashCommand implementation.
src/extension/prompt/node/chatParticipantTelemetry.ts Reworks slash command telemetry extraction to use prompt-file parsing + hashing logic.
src/extension/prompt/common/chatVariablesCollection.ts Introduces shared prompt-file slash command ID + parsing helpers.

Comment thread src/extension/prompt/node/chatParticipantTelemetry.ts Outdated
Comment thread src/extension/prompt/node/chatParticipantTelemetry.ts Outdated
@pwang347 pwang347 enabled auto-merge March 28, 2026 00:21
DonJayamanne
DonJayamanne previously approved these changes Mar 28, 2026
@pwang347 pwang347 added this pull request to the merge queue Mar 28, 2026
Merged via the queue into main with commit 48f5bd9 Mar 28, 2026
19 checks passed
@pwang347 pwang347 deleted the pawang/slashCommandTelemetryCleanup branch March 28, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants