Compare commits

..

4 Commits

Author SHA1 Message Date
Armin Veres cf403f1093
Merge e834c467cf into 334c14d1b4 2026-08-05 16:21:31 +02:00
Armin Richard Veres e834c467cf
fix(cmake): use proper CMakePresets.json parsing 2026-08-05 16:03:45 +02:00
Armin Richard Veres ef5693b0c1
perf(cmake): cache targets for buildPresets 2026-08-05 15:42:42 +02:00
Armin Richard Veres 827daa28a1
refactor(cmake): allow completion for configure/buildPresets with/out '=' 2026-08-05 15:42:42 +02:00
1 changed files with 0 additions and 3 deletions

View File

@ -322,9 +322,6 @@ _cmake_preset_build_dir() {
_cmake_presets() { _cmake_presets() {
local invoke=(${(Q)words}) local invoke=(${(Q)words})
invoke[$CURRENT]=() invoke[$CURRENT]=()
# drop a dangling --preset/--preset=... so it doesn't swallow --list-presets as its value
invoke=(${invoke:#--preset})
invoke=(${invoke:#--preset=*})
# TODO: remove all arguments -* except -S # TODO: remove all arguments -* except -S
local list_presets=(${(f)"$(${invoke} --list-presets 2>/dev/null | local list_presets=(${(f)"$(${invoke} --list-presets 2>/dev/null |