feat(ide): export a portable VS Code extension; publish Void/VbsVsCode
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 4s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 58s

This commit is contained in:
faumaray committed 2026-12-05 09:50:21 +03:00
1 parent 399b52c31c
commit 12a52bbd0d
9 files changed
+278 -2

No files matched your search

+18
View File
@@ -119,6 +119,24 @@ struct CompdbQueryResult {
[[nodiscard]] Void::Result::Result<CompdbQueryResult, Void::Result::Error>
query_compdb_entries(const std::filesystem::path &compdb_path, const CompdbQuery &query);
struct IdePluginOptions {
std::filesystem::path project_root;
std::filesystem::path build_root;
std::filesystem::path vbs_executable{"vbs"};
IdeKind editor{IdeKind::VsCode};
std::filesystem::path output_dir;
bool force{false};
};
struct IdePluginReport {
std::vector<std::filesystem::path> written_files;
std::vector<std::filesystem::path> skipped_existing_files;
};
// Exports editor-extension assets (currently VS Code: package.json, extension.js, README).
[[nodiscard]] Void::Result::Result<IdePluginReport, Void::Result::Error>
generate_ide_plugin_assets(const IdePluginOptions &options);
// Emits versioned JSON workspace/target metadata for external IDE plugins (`vbs ide query`).
[[nodiscard]] std::string format_ide_query_json(const Graph::BuildGraph &graph,
const std::filesystem::path &compdb_path,