Skip to content

Commit

Permalink
Merge pull request #112 from pocke/Add___close__to_Reader_and_Writer
Browse files Browse the repository at this point in the history
Add `#close` to Reader and Writer
  • Loading branch information
mtsmfm authored Jan 27, 2025
2 parents 15d4388 + bb2279e commit c21697e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/language_server/protocol/transport/io/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def read(&block)
end
end

def close
io.close
end

private

attr_reader :io
Expand Down
4 changes: 4 additions & 0 deletions lib/language_server/protocol/transport/io/writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def write(response)
io.print response_str
io.flush
end

def close
io.close
end
end
end
end
Expand Down

0 comments on commit c21697e

Please sign in to comment.