struct LSP::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.

Included Modules

Defined in:

lsp/file_system_watcher.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def base_uri : WorkspaceFolder | String #

[View source]
def base_uri=(base_uri : WorkspaceFolder | String) #

[View source]
def pattern : Pattern #

The actual glob pattern;


[View source]
def pattern=(pattern : Pattern) #

The actual glob pattern;


[View source]