Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "diagnostics/util"

Index

Functions

oneLess

  • oneLess(num: number | string): number
  • 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.

    Parameters

    • num: number | string

      A number or string representing a number

    Returns number

populateCollection

  • populateCollection(coll: vscode.DiagnosticCollection, fdiags: Iterable<FileDiagnostic>): void
  • Inserts a list of FileDiagnostic instances into a diagnostic collection.

    note

    The coll collection will be cleared of all previous contents

    Parameters

    • coll: vscode.DiagnosticCollection

      The vscode.DiagnosticCollecion to populate.

    • fdiags: Iterable<FileDiagnostic>

      The FileDiagnostic objects to insert into the collection

    Returns void

Generated using TypeDoc