External module "diagnostics/util"
Functions
oneLess
- oneLess(num: number | string): number
-
Parameters
Returns number
populateCollection
- populateCollection(coll: vscode.DiagnosticCollection, fdiags: Iterable<FileDiagnostic>): void
-
Parameters
-
coll: vscode.DiagnosticCollection
-
Returns void
Get one less than the given number of number-string.
If the number is greater than zero, returns that number minus one. If the number is less than one, returns zero.