Skip to content

Fix missing activation event for compressGitStage command #741

Description

@andi1984

Priority: MEDIUM

Problem

The extension.compressGitStage command is listed in contributions but missing from activationEvents.

Current configuration in package.json:

"activationEvents": [
    "onCommand:extension.compressFile",
    "onCommand:extension.compressFolder",
    "onCommand:extension.getCompressionCount"
]

Solution

Option 1: Add the missing command

"activationEvents": [
    "onCommand:extension.compressFile",
    "onCommand:extension.compressFolder",
    "onCommand:extension.getCompressionCount",
    "onCommand:extension.compressGitStage"
]

Option 2: Use modern activation (VSCode 1.74+)

Remove the field entirely and let VSCode automatically activate on command execution:

// Remove activationEvents entirely

Option 3: Use onStartupFinished for lazy loading

"activationEvents": [
    "onStartupFinished"
]

Reference

VSCode Activation Events

Priority

MEDIUM - Bug that prevents proper command activation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions