lib/solargraph/language_server/host/dispatch.rb
# The Sources observer callback that merges a source into the host's
# libraries when it gets updated.
#
# @param src [Source]
# @return [void]
The Sources observer callback that merges a source into the host's
libraries when it gets updated.
The Sources observer callback that merges a source into the host ' s libraries when it gets updated .
def update_libraries src
          libraries.each do |lib|
            if lib.contain?(src.filename) || lib.open?(src.filename)
              lib.merge src
              cataloger.ping(lib)
            end
          end
          diagnoser.schedule file_to_uri(src.filename) if src.synchronized?
        end
def update_libraries src libraries . each do | lib | if lib . contain? ( src . filename ) || lib . open? ( src . filename ) lib . merge src cataloger . ping ( lib ) end end diagnoser . schedule file_to_uri ( src . filename ) if src . synchronized? end
The Sources observer callback that merges a source into the host's
libraries when it gets updated.
The Sources observer callback that merges a source into the host ' s libraries when it gets updated .
# @todo This module should not call cataloger and diagnoser
None
void
src
None