feat(ide): export Zed task assets; publish Void/VbsZed
This commit is contained in:
1 parent
12a52bbd0d
commit
3577ba69b7
6 files changed
+59
-3
No files matched your search
@@ -322,6 +322,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **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.
|
||||
|
||||
- **Wave 115 (Zed Extension Repository)**: `vbs ide plugin --editor zed` now emits `extension.toml`, `tasks.json` (six tasks) and a README; the assets were published to the new [Void/VbsZed](https://git.faumaray.com/Void/VbsZed) repository and confirmed via the Gitea API. The plugin asset unit test now covers both VS Code and Zed.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -118,4 +118,5 @@ Base HEAD: `fe0d1a6`
|
||||
| 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 |
|
||||
| Wave 115 (Zed extension repo) | `vbs ide plugin --editor zed` emits extension.toml/tasks.json/README; published to `Void/VbsZed` | COMPLETE & VERIFIED (unit test passes; repo contents confirmed via the Gitea API) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, [Void/VbsZed](https://git.faumaray.com/Void/VbsZed), 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) |
|
||||
@@ -1628,6 +1628,13 @@ vbs ide plugin --project <proj> --build-dir <build> --editor vscode --output <di
|
||||
(`package.json`, `extension.js`, `README.md`, `LICENSE`, `.vscodeignore`); the contents were
|
||||
read back through the Gitea API.
|
||||
|
||||
## Zed Extension Repository (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- `vbs ide plugin --editor zed --output DIR` writes `extension.toml`, `tasks.json` (six tasks) and
|
||||
`README.md`; the unit test parses `tasks.json` as strict JSON with six entries.
|
||||
- Published to the new [Void/VbsZed](https://git.faumaray.com/Void/VbsZed) repository
|
||||
(`extension.toml`, `tasks.json`, `README.md`); contents confirmed 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 (**VS Code extension published** at `Void/VbsVsCode` via `vbs ide plugin`; Zed/CLion plugins remain).
|
||||
4. IDE ecosystem: File API shim (**done**: `vbs ide generate` emits codemodel-v2), presets import (**done**: `vbs presets`), external plugins (**VS Code and Zed extensions published** at `Void/VbsVsCode` and `Void/VbsZed` via `vbs ide plugin`; a CLion plugin remains).
|
||||
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).
|
||||
|
||||
+37
-1
@@ -1267,10 +1267,46 @@ export_ide_plugin_assets(const IdePluginOptions &options) {
|
||||
}(),
|
||||
output.string());
|
||||
|
||||
if (options.editor == IdeKind::Zed) {
|
||||
std::string zed_tasks = "[\n";
|
||||
for (std::size_t i = 0; i < commands.size(); ++i) {
|
||||
const auto &command = commands[i];
|
||||
if (i > 0) {
|
||||
zed_tasks += ",\n";
|
||||
}
|
||||
zed_tasks += " {\"label\":" + json_quote(command.title) +
|
||||
",\"command\":\"vbs\",\"args\":" + json_array(command.args, json_quote) +
|
||||
",\"use_new_terminal\":false,\"allow_concurrent_runs\":false}";
|
||||
}
|
||||
zed_tasks += "\n]\n";
|
||||
const std::string zed_manifest =
|
||||
"id = \"vbs\"\n"
|
||||
"name = \"VoidBuildSystem\"\n"
|
||||
"description = \"Zed task assets for VoidBuildSystem (VBS).\"\n"
|
||||
"version = \"0.1.0\"\n"
|
||||
"schema_version = 1\n"
|
||||
"authors = [\"Void contributors\"]\n"
|
||||
"repository = \"https://git.faumaray.com/Void/VbsZed\"\n";
|
||||
const std::string zed_readme =
|
||||
"# VbsZed\n\nZed task assets for VoidBuildSystem, generated by `vbs ide plugin "
|
||||
"--editor zed`.\n\nCopy `tasks.json` to `.zed/tasks.json` in your project (or install "
|
||||
"this extension) and run the tasks from Zed's task menu. Set `VBS_BIN` if `vbs` is not "
|
||||
"on `PATH`.\n";
|
||||
|
||||
for (const auto &[name, content] :
|
||||
std::vector<std::pair<std::string, std::string>>{{"extension.toml", zed_manifest},
|
||||
{"tasks.json", zed_tasks},
|
||||
{"README.md", zed_readme}}) {
|
||||
if (auto written = write_asset(output / name, content); !written) {
|
||||
return std::unexpected{written.error()};
|
||||
}
|
||||
}
|
||||
return report;
|
||||
}
|
||||
if (options.editor != IdeKind::VsCode) {
|
||||
return std::unexpected{Void::System::make_system_error(
|
||||
Void::System::SystemErrorCode::unsupported,
|
||||
"editor plugin assets are currently generated for vscode only")};
|
||||
"editor plugin assets are generated for vscode and zed only")};
|
||||
}
|
||||
|
||||
for (const auto &[name, content] :
|
||||
|
||||
+11
-1
@@ -1128,8 +1128,18 @@ VOID_TEST(FullV1Tests, ide_plugin_assets_export_vscode_extension) {
|
||||
|
||||
auto zed_options = options;
|
||||
zed_options.editor = Editor::IdeKind::Zed;
|
||||
zed_options.output_dir = tmp / "vbs-zed";
|
||||
auto zed_report = Editor::generate_ide_plugin_assets(zed_options);
|
||||
Void::Testing::expect(!zed_report.has_value());
|
||||
Void::Testing::require(zed_report.has_value());
|
||||
Void::Testing::expect_eq(zed_report->written_files.size(), std::size_t{3});
|
||||
Void::Testing::expect(std::filesystem::exists(zed_options.output_dir / "extension.toml"));
|
||||
auto zed_tasks = Void::FileSystem::read_file(zed_options.output_dir / "tasks.json");
|
||||
Void::Testing::require(zed_tasks.has_value());
|
||||
auto zed_tasks_json = Void::Json::Strict::parse(*zed_tasks);
|
||||
Void::Testing::require(zed_tasks_json.has_value());
|
||||
const auto *zed_array = std::get_if<Void::Json::Strict::Value::Array>(&zed_tasks_json->value);
|
||||
Void::Testing::require(zed_array != nullptr);
|
||||
Void::Testing::expect_eq(zed_array->size(), std::size_t{6});
|
||||
}
|
||||
|
||||
// === Migration tooling: CMakeLists.txt -> build.cpp scaffold ===
|
||||
|
||||
Reference in new issue
Block a user