Permalink
Browse files

Removed unnecessary interval server.

  • Loading branch information...
castwide committed Jan 9, 2019
1 parent 3d4cc54 commit 14433206d9f75a4d49efb1854a81545c3b827472
Showing with 17 additions and 12 deletions.
  1. +16 −11 lib/solargraph/language_server/transport/adapter.rb
  2. +1 −1 lib/solargraph/version.rb
@@ -13,6 +13,11 @@ def opening
start_timers
end

def closing
@host.stop
Backport.stop unless @host.options['transport'] == 'external'
end

def process request
message = @host.start(request)
message.send_response
@@ -28,17 +33,17 @@ def sending data
private

def start_timers
Backport.prepare_interval 0.1 do
tmp = @host.flush
write tmp unless tmp.empty?
if @host.stopped?
if @host.options['transport'] == 'external'
@host = Solargraph::LanguageServer::Host.new
else
Backport.stop
end
end
end
# Backport.prepare_interval 0.1 do
# tmp = @host.flush
# write tmp unless tmp.empty?
# if @host.stopped?
# if @host.options['transport'] == 'external'
# @host = Solargraph::LanguageServer::Host.new
# else
# Backport.stop
# end
# end
# end
end
end
end
@@ -1,3 +1,3 @@
module Solargraph
VERSION = '0.30.2'
VERSION = '0.30.3'
end

0 comments on commit 1443320

Please sign in to comment.