Sha256: 3d6b65a4e5f0abd91e65f57729496f4776059839e2379353b1a72d0184f3986d
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module PlatformosCheck module LanguageServer class DocumentLinkEngine def initialize(storage) @storage = storage @providers = DocumentLinkProvider.all.map { |x| x.new(storage) } end def document_links(relative_path) buffer = @storage.read(relative_path) return [] unless buffer platformos_app = PlatformosCheck::App.new(@storage) @providers.flat_map do |p| p.document_links(buffer, platformos_app) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
platformos-check-0.0.3 | lib/platformos_check/language_server/document_link_engine.rb |
platformos-check-0.0.2 | lib/platformos_check/language_server/document_link_engine.rb |