Interface: ValidationIssue
Defined in: packages/cspell-lib/src/lib/Models/ValidationIssue.ts:4
Extends
ValidationResult
Properties
hasPreferredSuggestions?
optional
hasPreferredSuggestions:boolean
Defined in: packages/cspell-types/dist/index.d.mts:105
This setting is used for common typo detection.
true
- if it has been determined if preferred suggestions are available.false
- if preferred suggestions are NOT available.undefined
- if it has not been determined.
Since
9.1.0
Inherited from
ValidationResult.hasPreferredSuggestions
hasSimpleSuggestions?
optional
hasSimpleSuggestions:boolean
Defined in: packages/cspell-types/dist/index.d.mts:97
true
- if it has been determined if simple suggestions are available.
false
- if simple suggestions are NOT available.
undefined
- if it has not been determined.
Since
9.1.0
Inherited from
ValidationResult.hasSimpleSuggestions
isFlagged?
optional
isFlagged:boolean
Defined in: packages/cspell-lib/src/lib/Models/ValidationResult.ts:7
Inherited from
ValidationResult.isFlagged
isFound?
optional
isFound:boolean
Defined in: packages/cspell-lib/src/lib/Models/ValidationResult.ts:8
Inherited from
ValidationResult.isFound
issueType?
optional
issueType:IssueType
Defined in: packages/cspell-types/dist/index.d.mts:86
Issues are spelling issues unless otherwise specified.
Inherited from
ValidationResult.issueType
length?
optional
length:number
Defined in: packages/cspell-types/dist/index.d.mts:42
Assumed to match text.length
if the text has not been transformed.
Inherited from
ValidationResult.length
line
line:
TextOffset
Defined in: packages/cspell-lib/src/lib/Models/ValidationResult.ts:6
Inherited from
ValidationResult.line
message?
optional
message:string
Defined in: packages/cspell-types/dist/index.d.mts:90
Optional message to show.
Inherited from
ValidationResult.message
offset
offset:
number
Defined in: packages/cspell-types/dist/index.d.mts:38
The offset into the document.
Inherited from
ValidationResult.offset
suggestions?
optional
suggestions:string
[]
Defined in: packages/cspell-lib/src/lib/Models/ValidationIssue.ts:5
suggestionsEx?
optional
suggestionsEx:ExtendedSuggestion
[]
Defined in: packages/cspell-lib/src/lib/Models/ValidationIssue.ts:6
text
text:
string
Defined in: packages/cspell-types/dist/index.d.mts:34
The text found at the offset. If the text has been transformed, then the length might not match length
.
Example: Original: cafe\u0301
, text: café
Inherited from
ValidationResult.text