Hierarchy

  • LanguageServiceDefaults

Index

Methods

addExtraLib

  • addExtraLib(content: string, filePath?: string): IDisposable
  • Add an additional source file to the language service. Use this for typescript (definition) files that won't be loaded as editor document, like jquery.d.ts.

    Parameters

    • content: string

      The file content

    • Optional filePath: string

      An optional file path

    Returns IDisposable

    A disposabled which will remove the file from the language service upon disposal.

setCompilerOptions

setDiagnosticsOptions

setEagerModelSync

  • setEagerModelSync(value: boolean): void
  • Configure if all existing models should be eagerly sync'd to the worker on start or restart.

    Parameters

    • value: boolean

    Returns void

setMaximunWorkerIdleTime

  • setMaximunWorkerIdleTime(value: number): void
  • Configure when the worker shuts down. By default that is 2mins.

    Parameters

    • value: number

      The maximun idle time in milliseconds. Values less than one mean never shut down.

    Returns void