{"id":36972356,"url":"https://github.com/type-ruby/t-ruby-vscode","last_synced_at":"2026-01-13T21:58:50.937Z","repository":{"id":328894814,"uuid":"1117229163","full_name":"type-ruby/t-ruby-vscode","owner":"type-ruby","description":"T-Ruby extention for VSCode + Cursor Marketplace","archived":false,"fork":false,"pushed_at":"2025-12-16T06:16:02.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T13:57:27.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/type-ruby.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-16T02:43:08.000Z","updated_at":"2025-12-16T06:16:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/type-ruby/t-ruby-vscode","commit_stats":null,"previous_names":["type-ruby/t-ruby-vscode"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/type-ruby/t-ruby-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/type-ruby%2Ft-ruby-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/type-ruby%2Ft-ruby-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/type-ruby%2Ft-ruby-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/type-ruby%2Ft-ruby-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/type-ruby","download_url":"https://codeload.github.com/type-ruby/t-ruby-vscode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/type-ruby%2Ft-ruby-vscode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":"2026-01-13T21:58:50.848Z","updated_at":"2026-01-13T21:58:50.928Z","avatar_url":"https://github.com/type-ruby.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/248530250\" alt=\"T-Ruby\" height=\"120\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eT-Ruby for VS Code \u0026 Cursor\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://type-ruby.github.io\"\u003eOfficial Website\u003c/a\u003e\n  \u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"https://github.com/type-ruby/t-ruby\"\u003eGitHub\u003c/a\u003e\n  \u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=t-ruby.t-ruby\"\u003eVS Code Marketplace\u003c/a\u003e\n  \u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"https://open-vsx.org/extension/t-ruby/t-ruby\"\u003eCursor Marketplace\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://rubygems.org/gems/t-ruby\"\u003e\u003cimg src=\"https://img.shields.io/gem/v/t-ruby?label=T-Ruby\" alt=\"T-Ruby\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/type-ruby/t-ruby-vscode\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eVS Code\u003c/strong\u003e\u003cbr\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=t-ruby.t-ruby\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/v/t-ruby.t-ruby?label=Extension\" alt=\"Extension\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=t-ruby.t-ruby\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/i/t-ruby.t-ruby?label=Downloads\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eCursor (Open VSX)\u003c/strong\u003e\u003cbr\u003e\n  \u003ca href=\"https://open-vsx.org/extension/t-ruby/t-ruby\"\u003e\u003cimg src=\"https://img.shields.io/open-vsx/v/t-ruby/t-ruby?label=Extension\" alt=\"Extension\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://open-vsx.org/extension/t-ruby/t-ruby\"\u003e\u003cimg src=\"https://img.shields.io/open-vsx/dt/t-ruby/t-ruby?label=Downloads\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nT-Ruby language support for VS Code and Cursor. Provides syntax highlighting, LSP-based code intelligence, and development tools for [T-Ruby](https://github.com/type-ruby/t-ruby) - a TypeScript-style static type system for Ruby.\n\n\u003e **Note**: This extension shares the same source code for both VS Code and Cursor, providing identical functionality in both editors.\n\n## Requirements\n\n- [T-Ruby Compiler](https://github.com/type-ruby/t-ruby) (`trc`) must be installed and available in your PATH\n\n```bash\ngem install t-ruby\n```\n\n## Installation\n\n### VS Code\n\nInstall from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=t-ruby.t-ruby):\n\n1. Open VS Code\n2. Go to Extensions (Ctrl+Shift+X)\n3. Search for \"T-Ruby\"\n4. Click Install\n\nOr install via command line:\n\n```bash\ncode --install-extension t-ruby.t-ruby\n```\n\n### Cursor\n\nInstall from the [Open VSX Registry](https://open-vsx.org/extension/t-ruby/t-ruby):\n\n1. Open Cursor\n2. Go to Extensions (Ctrl+Shift+X)\n3. Search for \"T-Ruby\"\n4. Click Install\n\n## Configuration\n\nAfter installation, configure the extension in VS Code settings (`Ctrl+,`):\n\n```json\n{\n  \"t-ruby.lspPath\": \"trc\",\n  \"t-ruby.enableLSP\": true,\n  \"t-ruby.diagnostics.enable\": true,\n  \"t-ruby.completion.enable\": true\n}\n```\n\n### Configuration Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `t-ruby.lspPath` | string | `\"trc\"` | Path to T-Ruby compiler |\n| `t-ruby.enableLSP` | boolean | `true` | Enable Language Server |\n| `t-ruby.diagnostics.enable` | boolean | `true` | Enable real-time diagnostics |\n| `t-ruby.completion.enable` | boolean | `true` | Enable autocomplete |\n\n## Features\n\n### Syntax Highlighting\n\nThe extension provides full syntax highlighting for:\n- `.trb` files (T-Ruby source files)\n- `.d.trb` files (T-Ruby declaration files)\n\nType annotations, interfaces, and type aliases are highlighted distinctly.\n\n### IntelliSense\n\n- **Autocomplete**: Type suggestions for parameters and return types\n- **Hover**: View type information by hovering over symbols\n- **Go to Definition**: Navigate to type/function definitions\n\n### Diagnostics\n\nReal-time error checking for:\n- Unknown types\n- Duplicate definitions\n- Syntax errors\n\n### Commands\n\nAccess via Command Palette (`Ctrl+Shift+P`):\n\n| Command | Description |\n|---------|-------------|\n| `T-Ruby: Compile Current File` | Compile the active `.trb` file |\n| `T-Ruby: Generate Declaration File` | Generate `.d.trb` from source |\n| `T-Ruby: Restart Language Server` | Restart the LSP server |\n\n## Quick Start Example\n\n1. Create a new file `hello.trb`:\n\n```trb\ntype UserId = String\n\ninterface User\n  id: UserId\n  name: String\n  age: Integer\nend\n\ndef greet(user: User): String\n  \"Hello, #{user.name}!\"\nend\n```\n\n2. Save the file - you'll see syntax highlighting and real-time diagnostics\n\n3. Hover over types to see their definitions\n\n4. Use `Ctrl+Space` for autocomplete suggestions\n\n## Troubleshooting\n\n### LSP not starting\n\n1. Check if `trc` is installed: `which trc`\n2. Verify the path in settings: `t-ruby.lspPath`\n3. Check Output panel: View \u003e Output \u003e T-Ruby Language Server\n\n### No syntax highlighting\n\n1. Ensure file has `.trb` or `.d.trb` extension\n2. Check file association: View \u003e Command Palette \u003e \"Change Language Mode\"\n\n### Performance issues\n\n- Disable diagnostics for large files: `\"t-ruby.diagnostics.enable\": false`\n- Restart the language server: Command Palette \u003e \"T-Ruby: Restart Language Server\"\n\n## Contributing\n\nIssues and pull requests are welcome!\nhttps://github.com/type-ruby/t-ruby-vscode/issues\n\n## Related\n\n- [T-Ruby Compiler](https://github.com/type-ruby/t-ruby) - The main T-Ruby compiler\n- [T-Ruby JetBrains](https://github.com/type-ruby/t-ruby-jetbrains) - JetBrains IDE plugin\n- [T-Ruby Vim](https://github.com/type-ruby/t-ruby-vim) - Vim/Neovim plugin\n\n## License\n\nBSD 2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftype-ruby%2Ft-ruby-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftype-ruby%2Ft-ruby-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftype-ruby%2Ft-ruby-vscode/lists"}