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