Skip to content

Commit d0ffc24

Browse files
authored
Remove legacy port file from LSP reporter (#3608)
Remove legacy port file from LSP reporter (#3608) ### Motivation Enough time has passed and the upgrades must have rolled out already. This PR removes support for the old port file, which has been replaced with the JSON DB. Co-authored-by: vinistock <[email protected]>
1 parent f824429 commit d0ffc24

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/ruby_lsp/test_reporters/lsp_reporter.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ def initialize
2020
dir_path = File.join(Dir.tmpdir, "ruby-lsp")
2121
FileUtils.mkdir_p(dir_path)
2222

23-
# Remove in 1 month once updates have rolled out
24-
legacy_port_path = File.join(dir_path, "test_reporter_port")
2523
port_db_path = File.join(dir_path, "test_reporter_port_db.json")
2624
port = ENV["RUBY_LSP_REPORTER_PORT"]
2725

@@ -32,8 +30,6 @@ def initialize
3230
elsif File.exist?(port_db_path)
3331
db = JSON.load_file(port_db_path)
3432
TCPSocket.new("localhost", db[Dir.pwd])
35-
elsif File.exist?(legacy_port_path)
36-
TCPSocket.new("localhost", File.read(legacy_port_path))
3733
else
3834
# For tests that don't spawn the TCP server
3935
require "stringio"

0 commit comments

Comments
 (0)