Visual mode / <C-q> broken on master: webpack tree-shaking removes all side-effect
Describe the bug
On vsix built on current master, v, V, <C-v> and <C-q> in Normal mode are silently ignored: every command defined in src/actions/commands/visual.ts and src/actions/commands/window.ts is missing from the shipped webpack bundle.
Root cause: package.json declares "sideEffects": false (#5130). That is incorrect for this codebase — the entire action system is driven by side effects. Every action class registers itself via the @RegisterAction decorator at module evaluation time, and src/actions/include-main.ts is a side-effect-only file consisting purely of imports.
Older webpack versions did not tree-shake unused CommonJS modules, so this worked by accident. The webpack dependency was bumped to 5.110.2, and it honors "sideEffects": false and drops these modules from the bundle (since v5.110.0). Related PR: https://github.com/webpack/webpack/pull/21502
current v1.32.4 is built with webpack 5.103.0 and is unaffected.
To Reproduce
Steps to reproduce the behavior:
- Build current master, package and install the vsix.
- Open a file in Normal mode.
- Press
v,V,<C-v>,<C-q>or any<C-w>command. - Nothing happens — the keys are silently ignored.
Expected behavior
v / V / <C-v> / <C-q> enter Visual / Visual Line / Visual Block mode, and <C-w> window commands work.
Screenshots
Environment (please complete the following information):
- Extension (VsCodeVim) version: current master (8647d4271)
- VSCode version: any
- OS: Windows
Additional context
Source: VSCodeVim/Vim