VS Code extension: Slow slash command autocomplete with many commands/skills
Description
When typing / in the VS Code extension to trigger slash command autocomplete, there's a noticeable delay before the command list appears. This issue does not occur in the terminal CLI.
Environment
- Claude Code VS Code Extension: v2.1.29
- Claude Code CLI: Works fine with same configuration
- OS: macOS (darwin-arm64)
- Number of commands: 77 command files (~12,400 lines total)
- Number of skills: 36 skills with SKILL.md files
- Total files to parse: 113
Expected Behavior
Typing / should instantly show the slash command autocomplete list, similar to the terminal CLI behavior.
Actual Behavior
There's a delay (approximately 1-2 seconds) before the autocomplete list appears when typing / in VS Code.
Hypothesis
The VS Code extension may be scanning and parsing all command/skill files on every keystroke without caching, while the CLI likely caches the command list after first load.
Suggested Improvement
Consider caching the parsed command/skill metadata after initial load and only refreshing when files change (using file watchers), rather than reparsing on every autocomplete trigger.
Workaround
Reducing the number of commands/skills and file sizes helps slightly, but the core issue appears to be architectural (no caching).
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗