struct LSP::FileOperationPattern
- LSP::FileOperationPattern
- Struct
- Value
- Object
Overview
A pattern to describe in which file operation requests or notifications the server is interested in.
Included Modules
- JSON::Serializable
Defined in:
lsp/file_operation_registration.crConstructors
Instance Method Summary
-
#glob : String
The glob pattern to match.
-
#glob=(glob : String)
The glob pattern to match.
-
#matches : FileOperationPatternKind | Nil
Whether to match files or folders with this pattern.
-
#matches=(matches : FileOperationPatternKind | Nil)
Whether to match files or folders with this pattern.
-
#options : FileOperationPatternOptions | Nil
Additional options used during matching.
-
#options=(options : FileOperationPatternOptions | Nil)
Additional options used during matching.
Constructor Detail
Instance Method Detail
def glob : String
#
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)
def glob=(glob : String)
#
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)
def matches : FileOperationPatternKind | Nil
#
Whether to match files or folders with this pattern.
Matches both if undefined.
def matches=(matches : FileOperationPatternKind | Nil)
#
Whether to match files or folders with this pattern.
Matches both if undefined.
def options=(options : FileOperationPatternOptions | Nil)
#
Additional options used during matching.