class LSProtocol::TextDocumentFilterScheme
- LSProtocol::TextDocumentFilterScheme
- Reference
- Object
Overview
A document filter where #scheme
is required field.
@since 3.18.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(scheme : String | Nil, language : String | Nil = nil, pattern : GlobPattern | Nil = nil)
Instance Method Summary
-
#language : String | Nil
A language id, like
typescript
. -
#pattern : GlobPattern | Nil
A glob pattern, like **/*.{ts,js}.
-
#scheme : String
A Uri
Uri#scheme
, likefile
oruntitled
.
Constructor Detail
def self.new(scheme : String | Nil, language : String | Nil = nil, pattern : GlobPattern | Nil = nil)
#
Instance Method Detail
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
.