{"id":16574562,"url":"https://github.com/jlelong/vscode-extend-language","last_synced_at":"2026-02-07T13:03:04.540Z","repository":{"id":57394071,"uuid":"439324137","full_name":"jlelong/vscode-extend-language","owner":"jlelong","description":"Generate a new language configuration file for VS Code by extending an existing one","archived":false,"fork":false,"pushed_at":"2025-01-26T14:35:23.000Z","size":659,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T07:37:19.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jlelong.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,"zenodo":null}},"created_at":"2021-12-17T12:25:03.000Z","updated_at":"2025-01-26T13:46:55.000Z","dependencies_parsed_at":"2024-12-18T02:42:43.386Z","dependency_job_id":"a5587316-8eee-4660-ad50-e676a2cdfd5f","html_url":"https://github.com/jlelong/vscode-extend-language","commit_stats":null,"previous_names":["jlelong/vscode-extend-languageconf"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/jlelong/vscode-extend-language","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlelong%2Fvscode-extend-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlelong%2Fvscode-extend-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlelong%2Fvscode-extend-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlelong%2Fvscode-extend-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlelong","download_url":"https://codeload.github.com/jlelong/vscode-extend-language/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlelong%2Fvscode-extend-language/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29194434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-11T21:44:50.493Z","updated_at":"2026-02-07T13:03:04.524Z","avatar_url":"https://github.com/jlelong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utility to extend languages in VS Code\n\nCurrently, it is not possible to build a new language as an extension of an existing one, the `language-configuration.json` file must be self-contained. This can lead to tedious maintenance as changes to the base language have to be forwarded manually. This package aims at helping language developers.\n\nAssume you wand to derive a new language configuration from `A-language-configuration.json`, you just need to define a file let us say `B.extension.language-configuration.json` containing\n\n```json\n{\n    \"extends\": \"path/to/A-language-configuration.json\",\n    \"overrides\": {\n        \"comments\": {\n            \"blockComment\": [\n                \"\u003c!--\",\n                \"--\u003e\"\n            ]\n        },\n        \"surroundingPairs\": [\n            [\"{\", \"}\"],\n            [\"[\", \"]\"],\n            [\"(\", \")\"],\n            [\"\\\"\", \"\\\"\"],\n            [\"'\", \"'\"],\n            [\"$\", \"$\"],\n            [\"`\", \"`\"],\n            [\"_\", \"_\"],\n            [\"*\", \"*\"]\n        ],\n    },\n    \"folding\": {\n        \"offSide\": true,\n        \"markers\": {\n            \"start\": \"^\\\\s*\u003c!--\\\\s*#?region\\\\b.*--\u003e\",\n            \"end\": \"^\\\\s*\u003c!--\\\\s*#?endregion\\\\b.*--\u003e\"\n        }\n    }\n}\n```\n\n- `extends` means that language `B` is based on the language configuration of language `A`. `path/to/A-language-configuration.json` can either be a relative local path to `A-language-configuration.json` or an url.\n- The `overrides` section allows to replace some settings of `A-language-configuration.json` by their new values in `B`.\n- Everything outside the `overrides` section is added to the `B` configuration. If the key already exists in `A-language-configuration.json`, it must be an array and in this case their contents are concatenated.\n\nTo obtain the self-contained language configuration file for `B`, `B.language-configuration.json`, use\n\n```js\nconst vel = require('vscode-extend-language')\n\nvel.expandConfigurationFile('./B.extension.language-configuration.json', './B.language-configuration.json')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlelong%2Fvscode-extend-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlelong%2Fvscode-extend-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlelong%2Fvscode-extend-language/lists"}