class RubyLsp::Cell::CodeLens

def compute_erb_view_path(name)

: (String name) -> String
def compute_erb_view_path(name)
  escaped_pattern = Regexp.escape(@pattern)
  base_path = @path.sub(/#{escaped_pattern}\.rb$/, "")
  folder = File.basename(base_path)
  path = File.join(File.dirname(base_path), folder, name)
  uri = URI::File.from_path(path: path).to_s
  uri
end