class LSProtocol::RelativePattern

Overview

A relative pattern is a helper to construct glob patterns that are matched relatively to a base URI. The common value for a baseUri is a workspace folder root, but it can be another absolute URI as well.

@since 3.17.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(base_uri : URI | WorkspaceFolder | Nil, pattern : Pattern | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def base_uri : URI | WorkspaceFolder #

[View source]
def pattern : Pattern #

The actual glob pattern;


[View source]