Vuex HelperVS Code extension for Vuex 2 that provides Go to Definition, Code Completion, and Hover Information for State, Getters, Mutations, and Actions. ⭐ If you find this extension helpful, please give it a star on GitHub! Your support is greatly appreciated. Features1. Go to DefinitionJump directly to the definition of Vuex store properties from your components. Demo: Jump to Definition |
| Feature | Status | Notes |
|---|---|---|
mapState — array syntax |
✅ | ...mapState(['count']) |
mapState — object string alias |
✅ | ...mapState({ alias: 'count' }) |
mapState — arrow function |
✅ | ...mapState({ c: state => state.count }) |
mapState — regular function |
✅ | ...mapState({ c(state) { return state.count } }) |
mapState — namespaced |
✅ | ...mapState('user', [...]) |
mapGetters — array / object |
✅ | |
mapMutations — array / object |
✅ | |
mapActions — array / object |
✅ | |
this.$store.state/getters/commit/dispatch |
✅ | Dot and bracket notation |
| Imported store instance access | ✅ | import store from '@/store' |
| Store access optional chaining | ✅ | this.$store?.getters?.['a/b'] |
createNamespacedHelpers |
✅ | |
| Object-style commit | ✅ | commit({ type: 'inc' }) |
state as function |
✅ | state: () => ({}) |
| Nested state | ✅ | Recursive parsing |
| Computed property keys | ✅ | [SOME_MUTATION](https://github.com/dmxiaoshubao/vuex-helper/blob/HEAD/state) {} |
| Dynamic module import/require | ✅ | ES Module & CommonJS |
| Namespaced modules | ✅ | Including nested |
this alias completion |
✅ | const _t = this; _t. |
{ root: true } namespace switch |
✅ | commit/dispatch with root option |
| State chain intermediate jump | ✅ | Click user in state.user.name |
| Vue 2 project detection | ✅ | Silent deactivation for non-Vuex projects |
rootState / rootGetters |
✅ | Full support for completion, definition, and hover |
Release Notes
1.0.0
Feature-focused 1.0 release:
- Added: Direct imported store instance support (
import store from '@/store') for completion, definition, and hover. - Added: Optional-chain access coverage (
?.) across$storeand imported store access patterns. - Added: Vue host smoke workflow supports Vue extension fallback priority (Volar first, fallback to Vetur).
- Improved: Alias-based store import detection now respects
tsconfig/jsconfigpathsresolution. - Improved: Provider/context hot paths are further cached to keep latency stable under real-world fixtures.
0.1.0
Stability, performance, and Vuex edge-case hardening release:
- Versioning: Bumped extension version to
0.1.0(including lockfile metadata). - Added:
thisalias completion support (e.g.const _t = this; _t./_t?.) for mapped properties and$storeaccess. - Fixed: Namespaced completion/definition/hover behavior in complex module and helper scenarios.
- Fixed: Nested state leaf resolution now prefers exact leaf nodes and avoids unnecessary parent fallback.
- Improved: Reindex strategy now skips unrelated file saves and uses shared mapper/cache instances to reduce redundant parsing.
- Improved: Path alias resolution tightened to avoid loose-prefix matching risk (e.g.
@/*vs@foo/*). - Improved: Restored lint quality gate and expanded regression tests for optional chaining, alias access, and module-scoped completion.
0.0.2
Enhanced completion features and bug fixes:
- Added:
this.xxxmapped property completion formapState,mapGetters,mapMutations,mapActions - Added:
this['xxx']bracket notation completion support - Fixed: ComponentMapper preprocessing for incomplete code (e.g.,
this.at end of line) - Fixed: Range calculation for bracket notation completion
- Improved: Removed auto-added parentheses for mutation/action completions
0.0.1
Initial release with features:
- Scoped Logic: Commit and State completions are context-aware inside modules.
- Hover Support: Local state hover tooltips in mutations/getters.
- Improved: Namespace filtering and JSDoc support.




