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
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user