Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RailsForge - Supercharged Ruby & Rails IDENew to Visual Studio Code? Get it now.
RailsForge - Supercharged Ruby & Rails IDE

RailsForge - Supercharged Ruby & Rails IDE

Shubham Taywade

|
15 installs
| (0) | Free
All-in-one Ruby on Rails intelligence: Schema Peek, Fast MVC Navigation, Route Autocomplete, RuboCop Autocorrect, Brakeman Security, Service Object Extractors, and @rails AI Agent.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RailsForge — Supercharged Ruby & Rails IDE

RailsForge Logo

The all-in-one developer platform for Ruby and Ruby on Rails in VS Code & Cursor.

Ruby Versions Rails Versions License


Why RailsForge?

Developers working with Ruby and Rails typically have to install 8 to 12 separate extensions (LSP, RuboCop, Brakeman, route finders, ERB helpers, test runners, and AI plugins) that do not share state.

RailsForge replaces this fragmented toolchain with a single, highly integrated extension. It features deterministic runtime environment detection, Hotwire/Stimulus intelligence, native VS Code Test Explorer integration, zero-downtime migration diagnostics, and a grounded local AI agent (@rails).


Core Features

⚡ 1. ActiveRecord Schema Peek & Association Explorer

  • Instant Schema Tooltips: Hover over any ActiveRecord model (User, Order, Account) to view an instant Markdown table of database columns, types, nullability, defaults, and foreign keys directly from db/schema.rb.
  • Zero Configuration: Automatically watches db/schema.rb and re-indexes on migration runs.

🚀 2. Fast MVC & Resource Navigation

Quickly jump across related Rails companion files using ergonomic keybindings:

Action Keybinding (Linux/Win) Keybinding (macOS) Target File
Go to Model Alt+R M Cmd+Alt+R M app/models/[resource].rb
Go to Controller Alt+R C Cmd+Alt+R C app/controllers/[resource]_controller.rb
Go to View Alt+R V Cmd+Alt+R V app/views/[resource]/
Go to Spec / Test Alt+R S Cmd+Alt+R S spec/models/[resource]_spec.rb
Go to Policy Alt+R P Cmd+Alt+R P app/policies/[resource]_policy.rb
Search Routes Alt+R R Cmd+Alt+R R Interactive Route Search

🛣️ 3. Real-Time Route Resolver & Path Helpers

  • URL Helper Autocompletion: Autocomplete named route helpers like users_path, edit_order_url, and api_v1_products_path.
  • Interactive Route Search: Press Alt+R R to search all defined routes, HTTP verbs, URL patterns, and controller#action mappings.

⚡ 4. Native Hotwire, Stimulus & Turbo Orchestration

  • Stimulus Autocompletion: Dynamically indexes app/javascript/controllers/ to autocomplete data-controller, data-action (click->controller#action), and data-*-target inside .html.erb, .haml, and .slim.
  • Turbo Frame Navigation: Jump directly to definition and find references for <%= turbo_frame_tag "cart" %> and <turbo-frame id="cart"> across view templates.

🧪 5. Next-Gen Testing & FactoryBot Intelligence

  • Test Explorer Integration: Automatically populates the VS Code Test sidebar with discovered RSpec (spec/) and Minitest (test/) hierarchies.
  • FactoryBot Jump to Definition: Ctrl+Click / Cmd+Click on create(:user), build(:order), or build_stubbed(:account) jumps directly to its declaration in spec/factories/*.rb.
  • Inline CodeLens: Directly above any describe, context, it, or test block:
    • ▶ Run Test — Executes the specific test line in an isolated terminal.
    • 🐞 Debug (rdbg) — Launches the Ruby 3.1+ native debugger (rdbg) session.

🏛️ 6. Design Principles Engine (SOLID, DRY, KISS, YAGNI & Demeter)

  • SRP (Single Responsibility): Flags Fat Models and Fat Controllers ($> 200$ LOC or $> 10$ actions) with 1-click QuickFix: "Extract to Service Object" — a single WorkspaceEdit that creates the new service file and replaces only the selected code, leaving the rest of the file untouched.
  • Law of Demeter: Detects deep association violations (user.account.billing.address.city) with a real Quick Fix that inserts delegate :method, to: :assoc for you.
  • KISS (Keep It Simple): Warns against unnecessary dynamic metaprogramming (define_method, class_eval) for static logic.
  • YAGNI (You Aren't Gonna Need It): Flags unused private helper methods with a Quick Fix that deletes the whole unused method.
  • Hard-Coded Collaborators: MinimalDependencyGraph flags PaymentGatewayService.call(...)-style references to other indexed services/queries/policies and offers "Inject X via constructor" — adds a keyword constructor param and rewrites call sites in that file to use it.
  • ✨ AI Suggest Fix: Every principle diagnostic also offers an AI-generated fix (via the local @rails agent) alongside the deterministic one, plus RailsForge: Fix All Deterministic Principle Violations in File to batch-apply the non-AI fixes.

📖 7. Version-Aware Documentation & Style Guide Engine

  • Contextual Hover Docs: Hovering over core Rails DSLs (has_many, belongs_to, turbo_stream, before_action, delegate) renders concise explanations, code snippets, and direct links to official Rails Guides and the community Ruby Style Guide.

📊 8. RailsForge Architecture & Health Sidebar

Dedicated Activity Bar Panel displaying:

  • Runtime Environment: Active Ruby, Rails, Hotwire, Testing framework, and migration safety status.
  • Database & Models: Indexed table counts and column breakdowns.
  • Routes & Hotwire: Route counts and registered Stimulus controller mappings.
  • Click-through: every row opens the matching read-only document in the editor (railsforge:/toolchain.md, schema.md, routes.md, graph.md) instead of just labelling a number.

🛡️ 9. DevSecOps & Zero-Downtime Migration Safety

  • RuboCop Real-Time Engine: Live diagnostics, 1-click line disables (# rubocop:disable ...), and safe (-a) or unsafe (-A) autocorrect on save.
  • Brakeman Security Audits: 1-click vulnerability scanning for SQL injection, mass assignment, XSS, and unpermitted parameters.
  • Bundler-Audit Dependency Scanner: Audits Gemfile.lock for known CVEs.
  • Strong Migrations Analyzer: Live linter for db/migrate/*.rb warning against table-locking operations with 1-click QuickFixes (algorithm: :concurrently).

🧱 10. Architecture & Refactoring Tools

  • Extract to Service Object: Select business logic in controllers or models and extract it into a clean app/services/[name]_service.rb implementing the ApplicationService.call pattern.
  • Extract to Query Object: Move complex ActiveRecord query chains into app/queries/[name]_query.rb.

📚 11. Design Patterns Sidebar (in the editor)

The Design Patterns view lists 17 patterns (Service, Query, Form, Value and Policy objects, plus Strategy, Command, Observer, State, Template Method, Chain of Responsibility, Adapter, Facade, Decorator, Factory Method, Builder and Singleton). Selecting one opens an explanation in the editor (railsforge:/pattern/<id>.md): intent, when to use it, what to watch out for, a Ruby example, and the classes in your project that follow it (each links to its file). Pattern nodes expand to those classes; Explain in chat sends the pattern text — and nothing from your project — to your configured AI provider. The text is original to RailsForge; Refactoring.Guru is linked as a reference only.

🧩 12. Living Pattern Catalog ("How We Do X Here")

Unlike a static reference catalog, this indexes your own project's app/services, app/queries, app/forms, app/policies, app/decorators, and concerns as you work:

  • CodeLens on every Service/Query/Form/Policy class: 📋 N similar patterns in this project.
  • RailsForge: Show Similar Patterns in This Project — quick-pick of the closest existing implementations (ranked by name and public-method overlap), so you check for prior art before writing a new CreateXService from scratch.
  • Live re-indexing on file save/create/delete — no separate build step.
  • Feeds directly into the @rails agent's grounding (below), so generated code is steered toward your existing patterns instead of reinventing them.

🔗 13. Cross-File "Related Files" CodeLens & Hover

Stops the "open 5-6 files to understand this class" loop:

  • On a model (app/models/*.rb): CodeLens above the class shows 🔗 3 Services · 2 Queries · 1 Policy · 6 Specs — every indexed pattern that references the model by name or by Model.find/.create/.where-style usage, plus its RSpec/Minitest spec count.
  • On a service/query/policy/decorator: CodeLens shows 🔗 Called by 7 · Depends on 3 · 2 Specs, sourced from the same collaborator graph the "Inject via constructor" Quick Fix uses (§6).
  • Hover the class definition line for the same information inline, without a click.
  • RailsForge: Show Related Files opens a quick-pick of everything found — services, queries, policies, callers, collaborators, and specs — each jumping straight to the right line.

💎 14. Standalone Ruby Scripts & Gem Support

RailsForge activates on any Ruby file, Gemfile, or .rb script — not only full Rails apps — and adjusts what it claims accordingly:

  • hasRails detection: EnvironmentDetector only reports a Rails version when rails is an actual Gemfile.lock dependency. A standalone gem or script gets hasRails: false instead of a fabricated Rails version, and the Architecture sidebar shows "Not a Rails app" rather than a misleading Rails line.
  • @rails agent grounding adapts: for a non-Rails project, the system prompt drops the "strictly uses Rails X" constraint and Rails-specific advice (Service Objects, N+1 prevention) in favor of plain-Ruby/SOLID guidance grounded only in gems that are actually declared as dependencies — it won't assume ActiveRecord/ActionController exist.
  • Pattern catalog works in lib/, not just app/: ProjectPatternIndexer matches services/, queries/, forms/, policies/, decorators/, and concerns/ directories anywhere in the path, so a gem's lib/my_gem/services/*.rb is indexed the same way app/services/*.rb is — CodeLens, "show similar patterns", and the dependency graph all work unmodified.
  • SRP still flags fat classes in lib/, just with generic "split this up" guidance instead of the Rails-specific "extract to app/services" quick fix, since a gem has no app/ convention to extract into.
  • Still Rails-only: schema/route indexing, MVC navigation, migration safety, and Hotwire/Stimulus tooling need db/schema.rb/config/routes.rb/app/ structure that a plain gem or script doesn't have, and simply do nothing rather than error.

🧠 15. Semantic Code Search

RailsForge: Semantic Search — find existing code by meaning, not just name: type "charge a card" or "send a welcome email" and get ranked matches across your indexed Services/Queries/Policies/Forms/Decorators, even when the class name doesn't contain your words.

  • Embedding-based when available: uses a local Ollama embedding model (railsForge.ollama.embeddingModel, default nomic-embed-text — pull it separately with ollama pull nomic-embed-text) to rank results by cosine similarity. Embeddings are cached in memory per pattern and only recomputed when that pattern's content actually changes — no SQLite/vector DB dependency.
  • Automatic keyword fallback: if Ollama or the embedding model isn't available, search transparently falls back to token-overlap keyword matching over pattern names, public methods, and preview text, so the command always returns something useful instead of failing outright. Results are labeled 🧠 (semantic) or 🔤 (keyword) so you know which mode answered.
  • Select a result to jump straight to that file and line.

🤖 11. Grounded AI Integration (Copilot Agent Mode, MCP, & @rails)

RailsForge connects your active application context (schema, routes, AST patterns, and conventions) to modern AI harnesses:

GitHub Copilot Agent Mode (VS Code Native)

In alignment with VS Code's deprecation of extension-provided @participant integrations in the Copilot harness, RailsForge provides agent-native Extension Tools and a bundled MCP server:

  • Direct Tool Calling: You don't need to type @rails. Simply ask Copilot questions in Agent Mode (e.g. "Inspect the users schema and list routes for /billing" or "Scaffold a service object for Stripe checkout"), and Copilot autonomously discovers and calls RailsForge tools (#railsforge_get_schema, #railsforge_list_routes, #railsforge_list_patterns, etc.).
  • Bundled MCP Server: Exposes deep AST dependencies, database schemas, and project guidelines over stdio.

Cursor & Local Compatibility Mode (@rails)

For Cursor and VS Code Local harness compatibility, the @rails chat participant remains fully supported:

  • Version Anti-Hallucination: Automatically discovers active Ruby and Rails versions from Gemfile.lock and .ruby-version, constraining the AI to compatible APIs only.
  • Context Grounding: Injects relevant database schema tables, column definitions, route mappings, and existing Service/Query/Form/Policy patterns into prompts with an explicit instruction to reuse or extend a close match before generating new code.
  • Slash Commands in Chat:
    • @rails /explain — Explain complex queries, scopes, and associations.
    • @rails /service — Scaffold clean Service Objects with Result monads.
    • @rails /scaffold — Generate convention-compliant models, controllers, and migrations.
    • @rails /spec — Generate complete RSpec request and unit specs using FactoryBot.
    • @rails /optimize — Detect N+1 query risks and missing eager loads (.includes).
    • @rails /migrate — Generate safe, reversible ActiveRecord migrations.

Standalone RailsForge Chat View

  • Private Local Inference: Use the dedicated RailsForge Chat panel in the Activity Bar powered by local Ollama (qwen2.5-coder:14b / 7b), OpenAI, or Anthropic — fully functional without requiring Copilot.

🛠️ 17. Ruby Toolchain, Tasks, Tests & Generators

  • Toolchain-aware execution — every tool (RuboCop, Brakeman, rake, rspec/rails test, console, …) runs through one resolver: the project's bin/ binstub, else bundle exec, else the bare tool, wrapped in your version manager (mise, asdf, rbenv, rvm, chruby) when one is detected and installed (railsForge.ruby.versionManager). Shown as Toolchain in the Architecture view.
  • Rails generators — RailsForge: Rails Generate… / Rails Destroy… with validated, shell-free arguments; created files open and can be RuboCop-autocorrected.
  • Native tasks — type: "railsforge" tasks (tests, RuboCop, Brakeman, db:*, routes) with RuboCop / RSpec / Minitest problem matchers.
  • Test Explorer — nested describe / context / it and Minitest discovery, per-test results, durations and failure locations, cancellable runs, and a Debug profile that launches the Ruby rdbg extension.
  • Optional analyzers — Reek, Flog, Flay, Debride, Standard via RailsForge: Run Code Analyzers (findings in Problems).
  • Runtime introspection (opt-in) — rails runner snapshot of real associations, validations, callbacks, routes and middleware. It boots your app, so it asks first and never runs in untrusted workspaces.
  • Project overview documents — RailsForge: Open Project Overview shows routes, schema, runtime and toolchain as read-only virtual documents.

🤖 18. Agent-Native Integration

  • VS Code Language Model tools — every RailsForge MCP tool is also a native railsforge_* tool for agent mode (one shared implementation).
  • Native MCP server provider — the bundled MCP server is registered per workspace root through VS Code's MCP API (the .cursor/mcp.json writer remains for Cursor).
  • railsForge.ai.provider = "vscode-lm" — use VS Code's model picker (Copilot or any Language Model provider) with no API key stored by RailsForge.

🧠 19. Rails Semantic Graph & Engineering Skills

RailsForge builds a graph of how your app fits together — route → controller action → view, model → table / columns / indexes / foreign keys, associations, validations, callbacks, related services, policies, specs and migrations — and gives it to the AI on every request (and to agent mode as get_semantic_context). On top of it, each request is routed to the most relevant ruby-agent-skills (a pinned, hash-verified release is bundled), whose rules are injected within a strict budget. Your project's .agents/skills extend or override them. Details: docs/skills-integration.md.

Command Palette (Ctrl+Shift+P / Cmd+Shift+P)

Command Identifier
RailsForge: Scan Workspace for Patterns, Smells & Safety railsforge.scanWorkspaceArchitecture
RailsForge: Refactor Selection (Design Patterns) railsforge.refactorSelection
RailsForge: Suggest Refactorings (AI) railsforge.suggestRefactorings
RailsForge: Go to Matching Model railsforge.goToModel
RailsForge: Go to Matching Controller railsforge.goToController
RailsForge: Go to Matching View railsforge.goToView
RailsForge: Go to Spec / Test railsforge.goToSpec
RailsForge: Go to Pundit / CanCanCan Policy railsforge.goToPolicy
RailsForge: Go to ViewComponent railsforge.goToComponent
RailsForge: Search Rails Routes railsforge.searchRoutes
RailsForge: RuboCop Autocorrect File railsforge.rubocopAutocorrect
RailsForge: Run Brakeman Security Scan railsforge.runBrakeman
RailsForge: Run Gemfile Security Audit (bundle-audit) railsforge.runBundleAudit
RailsForge: Check Migration Safety (Strong Migrations) railsforge.analyzeMigration
RailsForge: Extract Selection to Service Object railsforge.extractService
RailsForge: Extract Selection to Query Object railsforge.extractQuery
RailsForge: Set AI Provider API Key railsforge.setAiApiKey
RailsForge: Generate OpenAPI Skeleton railsforge.generateApiDocs
RailsForge: Bump Gem Version railsforge.bumpGemVersion
RailsForge: Release Gem railsforge.releaseGem

Several of these only show in the palette for the relevant project type — see features.md §6.


Configuration Settings

Every setting lives under railsForge.* and works at either the user level (global settings.json) or the workspace level (.vscode/settings.json, wins over user settings) — there's nothing extension-specific to set up for that, it's how VS Code settings scoping already works. Full reference with defaults, live-vs-reload behavior, and descriptions: features.md §7.

{
  // Exclude project-specific directories from every RailsForge scan, on top of
  // the built-in node_modules/vendor/tmp/log/.git/coverage defaults
  "railsForge.excludePatterns": ["**/spec/dummy/**"],

  // Force a project type instead of auto-detecting (monolith/api_only/gem/script)
  "railsForge.projectType.override": "auto",

  "railsForge.rubocop.autocorrectOnSave": true,
  "railsForge.rubocop.mode": "safe",
  "railsForge.brakeman.scanOnSave": false,
  "railsForge.testing.framework": "rspec",
  "railsForge.schema.autoIndex": true,
  "railsForge.routes.autoIndex": true,

  "railsForge.ollama.host": "http://localhost:11434",
  "railsForge.ollama.model": "qwen2.5-coder:14b",
  "railsForge.ollama.embeddingModel": "nomic-embed-text",

  // Cloud AI providers — API keys are set via the "RailsForge: Set AI Provider
  // API Key" command (stored in SecretStorage), never here
  "railsForge.ai.provider": "ollama",
  "railsForge.ai.openai.model": "gpt-4o-mini",
  "railsForge.ai.anthropic.model": "claude-sonnet-4-5",

  // Optional legal-tech prompt guardrails for contract/policy/litigation workflows
  "railsForge.legal.skills.enabled": false,

  "railsForge.mcp.enabled": true,
  "railsForge.apiDocs.enabled": true,
  "railsForge.performance.cacheSize": 200
}

Legal-tech AI guardrails

Set railsForge.legal.skills.enabled to true when using @rails in legal-tech workspaces. RailsForge then injects legal-domain guardrails inspired by the lawve-ai/awesome-legal-skills vscode-extension-builder-lawvable skill pack: jurisdiction assumptions, confidentiality handling, source-text citation discipline, uncertainty callouts, and attorney-review reminders.


Installation

In VS Code

code --install-extension railsforge.vsix

In Cursor

cursor --install-extension railsforge.vsix

Or install manually via VS Code / Cursor Extensions View (Ctrl+Shift+X) $\to$ Click ... $\to$ Install from VSIX... $\to$ select railsforge.vsix.


Relationship to Ruby LSP

RailsForge is a companion to Shopify's ruby-lsp, not a replacement for it. Install both:

// .vscode/extensions.json
{ "recommendations": ["shopify.ruby-lsp", "ShubhamTaywade.railsforge"] }

ruby-lsp (plus ruby-lsp-rails) remains the source of truth for Ruby syntax, diagnostics, and go-to-definition. RailsForge adds Rails-specific intelligence (schema peek, route search, pattern catalog, principle diagnostics, security scans, the local AI agent) on top. For deeper integration, RailsForge also ships an optional ruby-lsp add-on gem that injects schema context directly into ruby-lsp's own Hover responses — see ruby-lsp-addon/README.md for setup and the current scope (schema-aware hover today; route-aware completion and association-aware navigation are natural next steps on the same scaffold).

Roadmap

The pattern catalog and principle diagnostics above started as a regex/heuristic layer, deliberately kept dependency-light. That layer is now complemented by a persistent AST index (tree-sitter + SQLite, off the extension host thread — see "AST-Backed Analysis" above) that powers cross-file DRY detection, dependency cycle detection, guided multi-file extraction, and an MCP server. Remaining roadmap items are tracked in prd.md; happy to scope any of them as a follow-up.

🧬 16. AST-Backed Analysis (tree-sitter + SQLite, off-thread)

A second, complementary index alongside the regex-based one above — built with real Ruby parsing (tree-sitter-ruby) and persisted to a workspace-local .railsforge/index.sqlite3 (gitignore it, like any other local cache) so it survives VS Code restarts instead of rebuilding from scratch. Indexing runs in a worker_threads worker, never on the extension host's own thread. Fails soft: if the native modules can't load on some platform or Node/Electron version — better-sqlite3 specifically requires Node >= 22.14 (checked via process.versions.napi before ever touching the module, since an unsupported version aborts the process rather than throwing) — these features disable themselves and nothing else in RailsForge is affected. You are told when that happens: a one-time warning explains why (e.g. "runtime provides N-API 9; needs >= 10"), the Architecture & Health view shows an AST index status line, and the AST commands report the reason instead of a generic "try again". In a multi-root workspace each project gets its own .railsforge/index.sqlite3, started when you first open a file from it and disposed when its folder is removed.

  • RailsForge: Find Near-Duplicate Methods (DRY) — near-duplicate method bodies across the whole codebase (not just line-count heuristics), ranked by token-overlap similarity. Two methods with the same logic under different names/variables in different files are still flagged.
  • RailsForge: Show Circular Dependencies — DFS cycle detection (A → B → C → A) over an AST-derived dependency graph that also understands include/prepend/extend, not just .call/.new.
  • Guided Extract Service/Query: railsforge.extractService and railsforge.extractQuery now also (a) search the workspace for other exact copies of the selected code and offer to replace them too in the same multi-file edit, and (b) generate a companion RSpec skeleton at spec/services/*_spec.rb (or spec/queries/) when a spec/ directory exists, so extraction doesn't leave zero test coverage behind.
  • RailsForge: Export Cursor Rules & Register MCP Server — writes .cursor/rules/railsforge.mdc (schema, routes, existing patterns, the "search before generating" rule) and registers the railsforge MCP server in .cursor/mcp.json.
  • MCP server (dist/mcp/server.js, standalone — not loaded by the extension host) exposes get_schema, list_routes, list_patterns, find_similar_pattern, get_dependencies, and find_duplicate_methods as MCP tools, so any MCP-capable AI client can query the same project context the built-in @rails agent uses — not just Cursor/Claude Code.

Requirements

  • Ruby $\ge 2.7$ & Rails $\ge 5.2$
  • Bundler (Gemfile / Gemfile.lock)
  • Node $\ge$ 22.14 — the AST-Backed Analysis features (§16) bundle native modules (better-sqlite3, tree-sitter-ruby) that require N-API >= 10, only available in Node 22.14+. If your VS Code/Cursor build bundles an older Node, §16 disables itself gracefully — everything else in RailsForge is unaffected.
  • (Optional) Ollama running locally on http://localhost:11434 for @rails AI assistant features (ollama run qwen2.5-coder:14b or qwen2.5-coder:7b).
  • The AST-Backed Analysis features (§16) bundle native modules with prebuilt binaries for macOS/Linux/Windows on x64 and arm64. If your platform or Node version isn't covered, §16 disables itself — everything else in RailsForge is unaffected.

CI/CD & Release Process

Three GitHub Actions workflows guard this repo:

Workflow Triggers What it does
ci.yml Every push to master, every pull request (any base branch) Lint, type-check, compile, vitest run, and a full VSIX package build — on Node 20.x and 22.x. Uploads the built .vsix as a downloadable build artifact so a reviewer can install and manually test a PR's exact build. A separate job syntax-checks and gem builds ruby-lsp-addon/.
codeql.yml Push to master, every PR, weekly schedule Static security analysis (CodeQL) over the TypeScript extension and the Ruby add-on.
release.yml Push of a v* tag Two jobs: verify re-runs lint/type-check/test, checks the tag version matches package.json and that CHANGELOG.md has a section for it, builds the VSIX, installs it into a clean VS Code and smoke-tests the installed copy (pnpm run vsix-smoke), and records its sha256; publish (gated behind a release environment — see below) re-verifies that the VSIX is byte-identical to the smoke-tested one, creates the GitHub Release and publishes to the VS Code Marketplace / Open VSX if the corresponding secret is set.

Cutting a release:

  1. Bump "version" in package.json and rename ## Unreleased in CHANGELOG.md to ## X.Y.Z.
  2. Commit, merge to master.
  3. Tag and push: git tag vX.Y.Z && git push origin vX.Y.Z for a stable release, or git tag vX.Y.Z-pre && git push origin vX.Y.Z-pre for a Marketplace pre-release (package.json still says X.Y.Z; the -pre suffix only selects --pre-release publishing and marks the GitHub Release as a pre-release).
  4. verify runs automatically; a tag/package.json mismatch, a missing changelog section, a failing test or a failing installed-VSIX smoke test stops the release before anything is published.
  5. publish then runs — see below for how to require a manual approval before it actually publishes anything.

One-time repo setup (not something this repo's code can configure for you):

  • release environment (Settings → Environments → New environment named release, add required reviewers): without this, publish runs immediately after verify passes with no human check. With it, publishing to the Marketplace/Open VSX pauses for approval — recommended, since un-publishing a bad version afterward is much harder than a 30-second approval click.
  • Marketplace credentials (Settings → Secrets and variables → Actions). Preferred: Microsoft Entra ID via GitHub OIDC — Marketplace personal access tokens are being retired (Dec 1, 2026). Create an Entra app registration with a federated credential for this repository (subject repo:<owner>/<repo>:environment:release), add the app's service principal as a member of your Marketplace publisher, then set the repository variables AZURE_CLIENT_ID and AZURE_TENANT_ID. The workflow then logs in with azure/login and runs vsce publish --azure-credential (no stored secret). Fallback until you migrate: the VSCE_PAT secret. OVSX_PAT (Open VSX token) is separate and optional. A marketplace is skipped with a warning (not failed) if it has no credentials.
  • Dependabot (.github/dependabot.yml) opens weekly update PRs for npm, the Ruby add-on's bundler dependencies, and the GitHub Actions themselves — those PRs go through the normal ci.yml checks like any other PR.

License

MIT License © 2026 Shubham Taywade.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft