Repository navigation
CppAssistant 2.3.3
v2.3.3 - one menu, no duplicate completions, context-aware lists
Menu: one entry instead of two
Main.sublime-menu had two top-level nodes: the standard
Preferences > Package Settings > CppAssistant and a standalone
CppAssistant menu that duplicated the Preferences contents and appeared as
a second menu bar item. The standalone node is gone; all 31 entries now live
in Preferences > Package Settings > CppAssistant, and their captions follow
the Language switch (简体中文 / English / English + Chinese).
Completions: one entry per trigger
The same trigger could come from three places (built-in type, user snippet,
template pack), and two user snippets with the same name both appeared.
The final list is deduplicated by trigger with a fixed priority:
- built-in type / function (real signature and template arguments)
- user snippet
- template pack snippet
vector now appears once, and duplicate user snippets (ahead, aorihash,
apiaduhead, ...) appear once.
Less noise on empty prefixes
int n = used to open a list of ~200 STL and keyword entries. With an empty
prefix and no member access, only same-file symbols are returned now. v.,
p-> and std:: still show their complete lists.
Typedef'd containers work again
typedef std::vector<int> VI; VI a; a. produced no members because alias
following only handled user-defined types. Typedef/using aliases are now
resolved to the real container, and _container_type_args normalises the
token-joined std :: vector < int >. a. lists push_back, size, begin
and the rest, with the actual template argument substituted.
Verification
- 240 unit tests (+6) covering the menu merge, cross-source dedupe,
typedef/using member completion and empty-prefix behaviour. - flake8, mypy, Python 3.9/3.10/3.12/3.14 and libclang jobs all green.
Restart Sublime Text after upgrading (menus and the Python module are rebuilt
on start).
Full changelog: https://github.com/chenmoulaile/Sublime-CppAssistant/blob/main/CHANGELOG.md
Compare: v2.3.2...v2.3.3