feat(ide): export a portable VS Code extension; publish Void/VbsVsCode
This commit is contained in:
1 parent
399b52c31c
commit
12a52bbd0d
9 files changed
+278
-2
No files matched your search
@@ -318,6 +318,10 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 112 (Migration Tooling: `vbs migrate`)**: `Config::import_cmake_lists` reads a bounded CMakeLists.txt subset (`project`, `set`, `add_library`/`add_executable`, `target_link_libraries`, `target_include_directories`, `target_compile_definitions`, `install(TARGETS)`) with variable expansion (`${...}`, source-dir variables) and reports everything it cannot translate; `vbs migrate --input --output [--force] [--dry-run]` renders a `build.cpp` scaffold. Covered by a unit test, a CLI contract, and a dry run over the project's own CMakeLists.
|
||||
|
||||
- **Wave 113 (Editor Plugin Asset Export)**: `vbs ide plugin --editor vscode --output DIR` writes ready-to-use VS Code extension assets (`package.json` with six contributed commands, `extension.js` running `vbs` in a terminal, `README.md`), resolving the current `vbs` executable path; other editor kinds are rejected explicitly. Covered by a unit test and a CLI contract.
|
||||
|
||||
- **Wave 114 (VS Code Extension Repository)**: `vbs ide plugin` now emits a portable extension (workspace-folder based, `VBS_BIN`/`vbs` fallback) and the assets were published to the new [Void/VbsVsCode](https://git.faumaray.com/Void/VbsVsCode) repository (`package.json` with six commands, `extension.js`, README, MIT LICENSE, `.vscodeignore`). Zed/CLion plugin repositories remain.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
@@ -116,4 +116,6 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 110 (VoidLibrary Net & Sqlite) | Net and Sqlite in the native table; built in the clone under `-p openssl -p boost -p sqlite`; #61 updated | COMPLETE & VERIFIED IN CLONE (13 actions, no CMake) | `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, `contrib/voidlibrary-migration/`, Void/Library#61 |
|
||||
| Wave 111 (VoidLibrary complete module set) | All 57 modules described; full native build verified in the clone (134 actions) | COMPLETE & VERIFIED IN CLONE | `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, `contrib/voidlibrary-migration/`, Void/Library#61 |
|
||||
| Wave 112 (`vbs migrate`) | Bounded CMakeLists importer rendering a build.cpp scaffold, with notes for untranslated constructs | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; unit test and CLI contract pass) | `include/Void/Build/Config/CmakeImport.hpp`, `src/Config/CmakeImport.cpp`, `src/Main.cpp`, `tests/{FullV1Tests,CliContracts}.cpp/cmake`, docs |
|
||||
| Wave 113 (Editor plugin assets) | `vbs ide plugin --editor vscode --output DIR` emits extension assets; other editors rejected | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; unit test and CLI contract pass) | `include/Void/Build/Editor/CompDb.hpp`, `src/Editor/CompDb.cpp`, `src/Main.cpp`, `tests/{FullV1Tests,CliContracts}.cpp/cmake`, docs |
|
||||
| Wave 114 (VS Code extension repo) | Portable `vbs ide plugin` output published to `Void/VbsVsCode` (6 commands, LICENSE, README) | COMPLETE & VERIFIED (unit test and CLI contract pass; repo contents confirmed via the Gitea API) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, [Void/VbsVsCode](https://git.faumaray.com/Void/VbsVsCode), docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -1604,6 +1604,30 @@ vbs build --project /tmp/opencode/vl-migrate --build-dir /tmp/opencode/vl-migrat
|
||||
expanded `${CMAKE_CURRENT_SOURCE_DIR}`.
|
||||
- CLI contract covers `--help` and a missing input file (exit 1).
|
||||
|
||||
## Editor Plugin Asset Export (GCC 16.2, pin `0002e74`)
|
||||
|
||||
```sh
|
||||
vbs ide plugin --project <proj> --build-dir <build> --editor vscode --output <dir>
|
||||
```
|
||||
|
||||
- Writes `package.json` (six commands: build, test, install, package, daemon start/status),
|
||||
`extension.js` (spawns the resolved `vbs` executable in a terminal) and `README.md`.
|
||||
- `FullV1Tests.ide_plugin_assets_export_vscode_extension` **passed**: three files written, the
|
||||
manifest parses as strict JSON with six contributed commands, the script embeds the configured
|
||||
`vbs` path and the `vbs.build`/`vbs.package` ids, and a Zed request is rejected explicitly.
|
||||
- CLI contract covers `--help` and the missing `--output` error.
|
||||
|
||||
## VS Code Extension Repository (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- `vbs ide plugin --editor vscode --output DIR` now emits a portable extension: commands are
|
||||
plain `vbs` invocations and `--project` comes from the VS Code workspace folder at runtime;
|
||||
the executable falls back to `VBS_BIN` or `vbs` (no machine-specific paths).
|
||||
- `FullV1Tests.ide_plugin_assets_export_vscode_extension` **passed** (3 files, 6 contributed
|
||||
commands, `workspaceFolders` and `VBS_BIN || "vbs"` present, Zed rejected).
|
||||
- Published to the new [Void/VbsVsCode](https://git.faumaray.com/Void/VbsVsCode) repository
|
||||
(`package.json`, `extension.js`, `README.md`, `LICENSE`, `.vscodeignore`); the contents were
|
||||
read back through the Gitea API.
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
|
||||
@@ -78,7 +78,7 @@ Concrete work this implies:
|
||||
1. Documentation drift: status tables must match verified reality (this plan updates them).
|
||||
2. Wine-first Windows target support (§2).
|
||||
3. Packaging parity: ZIP (stored), DEB, RPM, metadata, signing (`--archive-format` extensions).
|
||||
4. IDE ecosystem: File API shim (**done**: `vbs ide generate` emits codemodel-v2), presets import (**done**: `vbs presets`), external plugins.
|
||||
4. IDE ecosystem: File API shim (**done**: `vbs ide generate` emits codemodel-v2), presets import (**done**: `vbs presets`), external plugins (**VS Code extension published** at `Void/VbsVsCode` via `vbs ide plugin`; Zed/CLion plugins remain).
|
||||
5. Migration tooling (**done**: `vbs migrate` renders a `build.cpp` scaffold from a bounded CMakeLists subset) and migrating VoidLibrary onto VBS (**trial extended**: 25+ pure modules build with VBS in a separate clone; upstream #61 tracks the in-repo build description and the remaining externally dependent modules).
|
||||
6. Test-runner parity.
|
||||
7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling).
|
||||
|
||||
Reference in new issue
Block a user