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
+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