{"id":16949742,"url":"https://github.com/kermanx/reactive-vscode","last_synced_at":"2026-04-12T15:57:00.512Z","repository":{"id":239923044,"uuid":"800470640","full_name":"kermanx/reactive-vscode","owner":"kermanx","description":"Vue Reactivity for VSCode Extension API","archived":false,"fork":false,"pushed_at":"2025-05-12T08:40:13.000Z","size":980,"stargazers_count":704,"open_issues_count":3,"forks_count":19,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-12T08:47:21.406Z","etag":null,"topics":["composable","extension-api","extension-development","reactivity","vscode","vue3"],"latest_commit_sha":null,"homepage":"https://kermanx.github.io/reactive-vscode/","language":"TypeScript","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/kermanx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-05-14T11:53:34.000Z","updated_at":"2025-05-12T08:40:11.000Z","dependencies_parsed_at":"2024-08-13T04:22:12.729Z","dependency_job_id":"6cc57a57-9ac7-41be-a809-f55a9255425b","html_url":"https://github.com/kermanx/reactive-vscode","commit_stats":{"total_commits":271,"total_committers":6,"mean_commits":"45.166666666666664","dds":0.02583025830258301,"last_synced_commit":"5e52865107c410b8d70f70a04dad3b6f20bc5730"},"previous_names":["kermanx/reactive-vscode"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kermanx%2Freactive-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kermanx%2Freactive-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kermanx%2Freactive-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kermanx%2Freactive-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kermanx","download_url":"https://codeload.github.com/kermanx/reactive-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149974,"owners_count":22022852,"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":["composable","extension-api","extension-development","reactivity","vscode","vue3"],"created_at":"2024-10-13T21:55:57.463Z","updated_at":"2026-04-12T15:57:00.505Z","avatar_url":"https://github.com/kermanx.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# reactive-vscode\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n\n\u003cimg src=\"./docs/public/header.png\" width=\"60%\" /\u003e\n\n**Develop VSCode extension with Vue Reactivity API**\n\n- [**Documentation**](https://kermanx.com/reactive-vscode/)\n- [**Why reactive-vscode**](https://kermanx.com/reactive-vscode/guide/why)\n- [**All Functions**](https://kermanx.com/reactive-vscode/functions/)\n- [**Examples**](https://kermanx.com/reactive-vscode/examples/)\n\n### Project Status\n\nCurrently, most of the VSCode APIs are covered, and this project has been used in:\n\n- [Vue - Official \u003csub\u003e\u003csub\u003e![downloads](https://img.shields.io/visual-studio-marketplace/d/Vue.volar.svg)\u003c/sub\u003e\u003c/sub\u003e](https://github.com/vuejs/language-tools)\n- [Slidev for VSCode \u003csub\u003e\u003csub\u003e![downloads](https://img.shields.io/visual-studio-marketplace/d/antfu.slidev.svg)\u003c/sub\u003e\u003c/sub\u003e](https://github.com/slidevjs/slidev/tree/main/packages/vscode)\n- [Iconify IntelliSense \u003csub\u003e\u003csub\u003e![downloads](https://img.shields.io/visual-studio-marketplace/d/antfu.iconify.svg)\u003c/sub\u003e\u003c/sub\u003e](https://github.com/antfu/vscode-iconify)\n\nThe [documentation](https://kermanx.com/reactive-vscode/) is complete, and the [VueUse integration](https://kermanx.com/reactive-vscode/guide/vueuse.html) is also available.\n\nHowever, the project is still in its 0.x and may have minor API changes. If you encounter any problems, please feel free to [open an issue](https://github.com/kermanx/reactive-vscode/issues/new).\n\n### Counter Example\n\n```ts\nimport { defineExtension, ref, useCommands, useStatusBarItem } from 'reactive-vscode'\nimport { StatusBarAlignment } from 'vscode'\n\nexport = defineExtension(() =\u003e {\n  const counter = ref(0)\n\n  useStatusBarItem({\n    alignment: StatusBarAlignment.Right,\n    priority: 100,\n    text: () =\u003e `Hello ${counter.value}`,\n  })\n\n  useCommands({\n    'extension.sayHello': () =\u003e counter.value++,\n    'extension.sayGoodbye': () =\u003e counter.value--,\n  })\n})\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e Implementation with original VSCode API \u003c/summary\u003e\n\n```ts\nimport type { ExtensionContext } from 'vscode'\nimport { commands, StatusBarAlignment, window } from 'vscode'\n\nexport function activate(extensionContext: ExtensionContext) {\n  let counter = 0\n\n  const item = window.createStatusBarItem(StatusBarAlignment.Right, 100)\n\n  function updateStatusBar() {\n    item.text = `Hello ${counter}`\n    item.show()\n  }\n\n  updateStatusBar()\n\n  extensionContext.subscriptions.push(\n    commands.registerCommand('extension.sayHello', () =\u003e {\n      counter++\n      updateStatusBar()\n    }),\n    commands.registerCommand('extension.sayGoodbye', () =\u003e {\n      counter--\n      updateStatusBar()\n    }),\n  )\n}\n```\n\n\u003c/details\u003e\n\n[More examples](https://kermanx.com/reactive-vscode/examples/).\n\n### License\n\n[MIT](./LICENSE) License © 2024-PRESENT [_Kerman](https://github.com/kermanx)\n\nSource code in [the `./packages/reactivity` directory](https://github.com/kermanx/reactive-vscode/blob/main/packages/reactivity) is ported from [`@vue/runtime-core`](https://github.com/vuejs/core/blob/main/packages/runtime-core). Licensed under a [MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE).\n\nSource code in [the `./packages/mock` directory](https://github.com/kermanx/reactive-vscode/blob/main/packages/core/src/mock) references the implementation of [`VSCode`](https://github.com/microsoft/vscode). Licensed under a [MIT License](https://github.com/microsoft/vscode/blob/main/LICENSE.txt).\n\nThe logo \u003cimg src=\"https://kermanx.com/reactive-vscode/logo.svg\" width=\"14\"\u003e is modified from [Vue Reactivity Artworks](https://github.com/vue-reactivity/art). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).\n\nPart of the docs website is ported from [VueUse](https://github.com/vueuse/vueuse). Licensed under a [MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE).\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/reactive-vscode?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/reactive-vscode\n[npm-downloads-src]: https://img.shields.io/npm/dm/reactive-vscode?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/reactive-vscode\n[license-src]: https://img.shields.io/github/license/kermanx/reactive-vscode.svg?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[license-href]: https://github.com/kermanx/reactive-vscode/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkermanx%2Freactive-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkermanx%2Freactive-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkermanx%2Freactive-vscode/lists"}