Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DiagnosticCollection

Hierarchy

  • DiagnosticCollection

Implements

  • DiagnosticCollection

Index

Constructors

constructor

  • new DiagnosticCollection(name: string, maxCountPerFile: number, proxy: LanguagesMain, onDidChangeDiagnosticsEmitter: Emitter<DiagnosticChangeEvent>): DiagnosticCollection

Properties

Private collectionName

collectionName: string

Private diagnostics

diagnostics: Map<string, Diagnostic[]>

Private diagnosticsLimitPerResource

diagnosticsLimitPerResource: number

Private isDisposed

isDisposed: boolean

Private onDidChangeDiagnosticsEmitter

onDidChangeDiagnosticsEmitter: Emitter<DiagnosticChangeEvent>

Private onDisposeCallback

onDisposeCallback: undefined | (() => void)

Private proxy

Static Private DIAGNOSTICS_PRIORITY

DIAGNOSTICS_PRIORITY: DiagnosticSeverity[] = ...

Accessors

name

  • get name(): string

Methods

clear

  • clear(): void

delete

  • delete(uri: URI): void

dispose

  • dispose(): void

Private ensureNotDisposed

  • ensureNotDisposed(): void

Private fireDiagnosticChangeEvent

  • fireDiagnosticChangeEvent(arg: string | string[] | URI | URI[]): void

forEach

  • forEach(callback: (uri: URI, diagnostics: Diagnostic[], collection: DiagnosticCollection) => any, thisArg?: any): void
  • Parameters

    • callback: (uri: URI, diagnostics: Diagnostic[], collection: DiagnosticCollection) => any
        • (uri: URI, diagnostics: Diagnostic[], collection: DiagnosticCollection): any
        • Parameters

          • uri: URI
          • diagnostics: Diagnostic[]
          • collection: DiagnosticCollection

          Returns any

    • Optional thisArg: any

    Returns void

get

  • get(uri: URI): undefined | Diagnostic[]

Private getAllResourcesUris

  • getAllResourcesUris(): string[]

Private getDiagnosticsByUri

  • getDiagnosticsByUri(uri: URI): undefined | Diagnostic[]

has

  • has(uri: URI): boolean

Private sendChangesToEditor

  • sendChangesToEditor(uris: URI[]): void

set

  • set(uri: Uri, diagnostics: undefined | Diagnostic[]): void
  • set(entries: [Uri, undefined | Diagnostic[]][]): void

Private setDiagnostics

  • setDiagnostics(entries: [URI, undefined | Diagnostic[]][]): void

Private setDiagnosticsForUri

  • setDiagnosticsForUri(uri: URI, diagnostics?: Diagnostic[]): void

setOnDisposeCallback

  • setOnDisposeCallback(onDisposeCallback: undefined | (() => void)): void

Private toUrisArray

  • toUrisArray(arg: string | string[] | URI | URI[]): URI[]