LSProtocol::FileOperationPattern
Inherits JSON::Serializable / Reference / Object
A pattern to describe in which file operation requests or notifications the server is interested in receiving.
@since 3.16.0
Constructors
new(pull : JSON::PullParser)
Sourcenew(glob : String | Nil, matches : FileOperationPatternKind | Nil = nil, options : FileOperationPatternOptions | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
glob
The glob pattern to match. Glob patterns can have the following syntax:
*to match one or more characters in a path segment?to match on one character in a path segment**to match any number of path segments, including none{}to group sub patterns into an OR expression. (e.g.**/*.{ts,js}matches all TypeScript and JavaScript files)[]to declare a range of characters to match in a path segment (e.g.,example.[0-9]to match onexample.0,example.1, …)[!...]to negate a range of characters to match in a path segment (e.g.,example.[!0-9]to match onexample.a,example.b, but notexample.0)