Sha256: 0f2423596ddcb80bbd925196c5f557b53a9ce9f9a5dc427c3b08f40f5a646a39
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 Bytes
Contents
# typed: false # frozen_string_literal: true require "tapioca/internal" module RubyLsp module Tapioca class ServerAddon < ::RubyLsp::Rails::ServerAddon def name "Tapioca" end def execute(request, params) case request when "dsl" fork do dsl(params) end end end private def dsl(params) load("tapioca/cli.rb") # Reload the CLI to reset thor defaults between requests ::Tapioca::Cli.start(["dsl", "--lsp_addon", "--workers=1"] + params[:constants]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tapioca-0.16.7 | lib/ruby_lsp/tapioca/server_addon.rb |
tapioca-0.16.6 | lib/ruby_lsp/tapioca/server_addon.rb |
tapioca-0.16.5 | lib/ruby_lsp/tapioca/server_addon.rb |