Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Apr 19, 2024
1 parent 862e2c9 commit 28b8536
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/ruby-lsp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@
module RubyLsp
VERSION = File.read(File.expand_path("../VERSION", __dir__)).strip
end

module Prism
class ParseResult
extend T::Generic
end
end
8 changes: 8 additions & 0 deletions lib/ruby_lsp/internal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
require "prism/visitor"
require "language_server-protocol"

# Prism v0.26.0 introduced generics for ParseResult, but it causes some problems so the intention is to remove it.
# Once that is done, we can remove this patch.
module Prism
class ParseResult
extend T::Generic
end
end

require "ruby-lsp"
require "ruby_lsp/base_server"
require "ruby_indexer/ruby_indexer"
Expand Down

0 comments on commit 28b8536

Please sign in to comment.