{"id":42608331,"url":"https://github.com/zaucy/vscode-bazel-cpp-example","last_synced_at":"2026-01-29T02:17:25.355Z","repository":{"id":72408517,"uuid":"387947770","full_name":"zaucy/vscode-bazel-cpp-example","owner":"zaucy","description":"Example of a C++ project with VSCode, Bazel, and working autocomplete","archived":false,"fork":false,"pushed_at":"2024-10-27T20:52:41.000Z","size":673,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-28T00:58:37.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaucy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-21T00:33:49.000Z","updated_at":"2024-10-27T20:52:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"db8a4063-d537-47b3-a361-c7d24e469dba","html_url":"https://github.com/zaucy/vscode-bazel-cpp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zaucy/vscode-bazel-cpp-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Fvscode-bazel-cpp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Fvscode-bazel-cpp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Fvscode-bazel-cpp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Fvscode-bazel-cpp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaucy","download_url":"https://codeload.github.com/zaucy/vscode-bazel-cpp-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Fvscode-bazel-cpp-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28860683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-29T02:17:24.739Z","updated_at":"2026-01-29T02:17:25.343Z","avatar_url":"https://github.com/zaucy.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example C++ repository built with Bazel using VSCode\n\nThis example has 2 useful scripts\n\n* `bazel run //:copy_compile_commands` - A way to generate `compile_commands.json` so that you may use a language server such as clangd for autocomplete\n* `bazel run //:copy_vscode_config_files` - A way to create launch VSCode configurations with correctly set `sourceFileMap` settings. See `.vscode/launch.json-tpl`\n\nThis all works thanks to [hedronvision/bazel-compile-commands-extractor](https://github.com/hedronvision/bazel-compile-commands-extractor) and [zaucy/bzlws](https://github.com/zaucy/bzlws) (a tool I made.) This repository was made for [this discussion](https://github.com/bazelbuild/vscode-bazel/issues/179) at [bazelbuild/vscode-bazel](https://github.com/bazelbuild/vscode-bazel).\n\n## Autocomplete with clangd\n\n![vscode-autocomplete](https://user-images.githubusercontent.com/1284289/126412267-d1452de1-10ec-4a01-938a-0ea986ae007e.gif)\n\n## Launch with debugger\n\n![vscode-launch](https://user-images.githubusercontent.com/1284289/126412279-bbb9ee59-6603-439a-b25a-519ecd584d0b.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaucy%2Fvscode-bazel-cpp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaucy%2Fvscode-bazel-cpp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaucy%2Fvscode-bazel-cpp-example/lists"}