{"id":13898144,"url":"https://github.com/sourcegraph/code-intel-extensions","last_synced_at":"2025-07-17T15:32:20.416Z","repository":{"id":37075352,"uuid":"144438392","full_name":"sourcegraph/code-intel-extensions","owner":"sourcegraph","description":"Provides precise code intelligence via LSIF and Language Servers, and fuzzy code intelligence using ctags and text search","archived":true,"fork":false,"pushed_at":"2024-03-16T07:55:22.000Z","size":5508,"stargazers_count":27,"open_issues_count":38,"forks_count":13,"subscribers_count":57,"default_branch":"master","last_synced_at":"2024-08-09T15:01:15.245Z","etag":null,"topics":["repo-type-codeintel"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcegraph.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-12T04:44:29.000Z","updated_at":"2024-03-18T02:11:31.000Z","dependencies_parsed_at":"2023-10-14T22:37:56.243Z","dependency_job_id":"45236044-c3b3-43f2-bcae-42563233d957","html_url":"https://github.com/sourcegraph/code-intel-extensions","commit_stats":{"total_commits":890,"total_committers":47,"mean_commits":18.93617021276596,"dds":0.5887640449438203,"last_synced_commit":"529547c6864f92a599a343501883fc26af64613f"},"previous_names":["sourcegraph/sourcegraph-basic-code-intel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fcode-intel-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fcode-intel-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fcode-intel-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fcode-intel-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/code-intel-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226274677,"owners_count":17598860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["repo-type-codeintel"],"created_at":"2024-08-06T18:04:07.251Z","updated_at":"2024-11-25T04:30:46.720Z","avatar_url":"https://github.com/sourcegraph.png","language":"TypeScript","readme":"# Sourcegraph code intelligence extensions\n\n[![Build status](https://badge.buildkite.com/6766067d76ccea068c30c6e143919363b24accd235892bfa07.svg)](https://buildkite.com/sourcegraph/code-intel-extensions)\n[![codecov](https://codecov.io/gh/sourcegraph/code-intel-extensions/branch/master/graph/badge.svg)](https://codecov.io/gh/sourcegraph/code-intel-extensions)\n\nThis repository contains the code for the [Sourcegraph extensions that provide code intelligence](https://sourcegraph.com/extensions?query=category%3A%22Programming+languages%22). These extensions provide precise code intelligence via LSIF and provides fuzzy code intelligence using a combination of ctags and search.\n\n## Repository structure\n\n- [`template`](./template) Template used to create extensions for specific languages\n- [`template/src/language-specs`](./template/src/language-specs) Language definitions, which are fed into the template to instantiate many language extensions\n\n## Development\n\n1. Run `yarn`\n2. Run `yarn run generate --languages=cpp \u0026\u0026 yarn --cwd generated-cpp run serve` (replace `cpp` with your language)\n3. Open up your Sourcegraph settings https://sourcegraph.com/users/you/settings and disable the language extensions you're developing:\n\n   ```json\n   {\n     ...\n     \"extensions\": {\n         \"sourcegraph/cpp\": false,\n         ...\n     }\n   }\n   ```\n\n4. [Sideload the extension](https://docs.sourcegraph.com/extensions/authoring/local_development) (hit OK on the alert to accept the default URL http://localhost:1234) on your Sourcegraph instance and refresh the page. Make sure you don't see two of the same language extension in the **Ext** menu.\n\n## Adding a language extension\n\n1. Add an entry to the [`template/src/language-specs`](template/src/language-specs) directory. For languages with a trivial configuration add a new entry (in alphabetical order) to [`languages.ts`](template/src/language-specs/languages.ts). Otherwise, add additional files following the existing examples.\n2. (optional, to enable jump to definition) Ensure the language is present in the command line arguments to universal-ctags https://github.com/sourcegraph/go-ctags/blob/main/ctags.go#L69\n3. Make sure there is a mapping entry for the `languageID` in https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/client/template/src/languages.ts#L40\n4. Generate and publish the extension as described below.\n\n## Generating \u0026 publishing extensions\n\nTypically you do not need to explicitly generate and publish extensions. By default, extensions are generated and published in BuildKite from the [master branch](https://buildkite.com/sourcegraph/code-intel-extensions/builds?branch=master).\n\nIf you need to manually generate/publish extensions, do so as follows:\n\nGenerate:\n\n- Specific language extensions: `yarn run generate --languages=foo,bar`\n- All known language extensions: `yarn run generate`\n\nPublish:\n\n1. Ensure the [`src` command-line tool](https://github.com/sourcegraph/src-cli)\n   is installed on your PATH, and environment variables are set:\n   - `SRC_ENDPOINT` should be the URL of your instance.\n   - `SRC_ACCESS_TOKEN` should contain an access token for your instance.\n2. Publish:\n   - Specific generated language extensions: `yarn run publish --languages=foo,bar`\n   - All known generated language extensions: `yarn run publish`\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fcode-intel-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2Fcode-intel-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fcode-intel-extensions/lists"}