class

LSProtocol::RelativePattern

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(base_uri : URI | WorkspaceFolder | Nil, pattern : Pattern | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

base_uri

A workspace folder or a base URI to which this pattern will be matched against relatively.

Source
pattern

The actual glob pattern;

Source