class LSProtocol::TextDocumentFilterScheme

Overview

A document filter where #scheme is required field.

@since 3.18.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(scheme : String | Nil, language : String | Nil = nil, pattern : GlobPattern | Nil = nil) #

[View source]

Instance Method Detail

def language : String | Nil #

A language id, like typescript.


[View source]
def pattern : GlobPattern | Nil #

A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.

@since 3.18.0 - support for relative patterns. Whether clients support relative patterns depends on the client capability textDocuments.filters.relativePatternSupport.


[View source]
def scheme : String #

A Uri Uri#scheme, like file or untitled.


[View source]