Struct umm::vscode::ProblemMatcher
source · pub struct ProblemMatcher {
apply_to: Option<String>,
background: Option<String>,
base: Option<String>,
file_location: Option<Vec<String>>,
owner: Option<String>,
pattern: Pattern,
severity: Option<String>,
source: Option<String>,
}Expand description
Struct for VSCode task’s problem matcher.
Fields§
§apply_to: Option<String>Controls if a problem reported on a text document is applied only to open, closed or all documents. Valid values are:
openDocuments- Only applied to open documents.closedDocuments- Only applied to closed documents.allDocuments- Applied to all documents.
background: Option<String>Patterns to track the begin and end of a matcher active on a background task.
base: Option<String>The name of a base problem matcher to use.
file_location: Option<Vec<String>>Defines how file names reported in a problem pattern should be interpreted. A relative fileLocation may be an array, where the second element of the array is the path the relative file location. Valid values are:
absolute- File names are interpreted as absolute paths.relative- File names are interpreted as relative paths.autoDetect- automatically detects
owner: Option<String>The owner of the problem inside Code. Can be omitted if base is specified. Defaults to ‘external’ if omitted and base is not specified.
pattern: PatternA problem pattern or the name of a contributed or predefined problem pattern. Can be omitted if base is specified.
severity: Option<String>The default severity for captures problems. Is used if the pattern doesn’t define a match group for severity.
source: Option<String>A human-readable string describing the source of this diagnostic, e.g. ‘typescript’ or ‘super lint’.
Implementations§
source§impl ProblemMatcher
impl ProblemMatcher
sourcepub fn builder() -> ProblemMatcherBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> ProblemMatcherBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building ProblemMatcher.
On the builder, call .apply_to(...)(optional), .background(...)(optional), .base(...)(optional), .file_location(...)(optional), .owner(...)(optional), .pattern(...), .severity(...)(optional), .source(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ProblemMatcher.