Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LanguageServiceHost

Hierarchy

  • LanguageServiceHost
    • LanguageServiceHost

Index

Methods

Optional directoryExists

  • directoryExists(directoryName: string): boolean
  • Parameters

    • directoryName: string

    Returns boolean

Optional error

  • error(s: string): void
  • Parameters

    • s: string

    Returns void

fileExists

  • fileExists(path: string): boolean
  • Parameters

    • path: string

    Returns boolean

Optional getCancellationToken

  • getCancellationToken(): HostCancellationToken
  • Returns HostCancellationToken

getCompilationSettings

  • getCompilationSettings(): CompilerOptions
  • Returns CompilerOptions

Optional getCompilerHost

  • getCompilerHost(): undefined | CompilerHost
  • Returns undefined | CompilerHost

getCurrentDirectory

  • getCurrentDirectory(): string
  • Returns string

Optional getCustomTransformers

  • getCustomTransformers(): undefined | CustomTransformers
  • Gets a set of custom transformers to use during emit.

    Returns undefined | CustomTransformers

getDefaultLibFileName

  • getDefaultLibFileName(options: CompilerOptions): string
  • Parameters

    • options: CompilerOptions

    Returns string

Optional getDirectories

  • getDirectories(directoryName: string): string[]
  • Parameters

    • directoryName: string

    Returns string[]

Optional getLocalizedDiagnosticMessages

  • getLocalizedDiagnosticMessages(): any
  • Returns any

Optional getNewLine

  • getNewLine(): string
  • Returns string

Optional getParsedCommandLine

  • getParsedCommandLine(fileName: string): undefined | ParsedCommandLine
  • Parameters

    • fileName: string

    Returns undefined | ParsedCommandLine

Optional getProjectReferences

  • getProjectReferences(): undefined | readonly ProjectReference[]
  • Returns undefined | readonly ProjectReference[]

Optional getProjectVersion

  • getProjectVersion(): string
  • Returns string

Optional getResolvedModuleWithFailedLookupLocationsFromCache

  • getResolvedModuleWithFailedLookupLocationsFromCache(modulename: string, containingFile: string, resolutionMode?: CommonJS | ESNext): undefined | ResolvedModuleWithFailedLookupLocations
  • Parameters

    • modulename: string
    • containingFile: string
    • Optional resolutionMode: CommonJS | ESNext

    Returns undefined | ResolvedModuleWithFailedLookupLocations

getScriptFileNames

  • getScriptFileNames(): string[]
  • Returns string[]

Optional getScriptKind

  • getScriptKind(fileName: string): ScriptKind
  • Parameters

    • fileName: string

    Returns ScriptKind

getScriptSnapshot

  • getScriptSnapshot(fileName: string): undefined | IScriptSnapshot
  • Parameters

    • fileName: string

    Returns undefined | IScriptSnapshot

getScriptVersion

  • getScriptVersion(fileName: string): string
  • Parameters

    • fileName: string

    Returns string

Optional getTypeRootsVersion

  • getTypeRootsVersion(): number
  • Returns number

Optional installPackage

  • installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>
  • Parameters

    • options: InstallPackageOptions

    Returns Promise<ApplyCodeActionCommandResult>

Optional isKnownTypesPackageName

  • isKnownTypesPackageName(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

Optional log

  • log(s: string): void
  • Parameters

    • s: string

    Returns void

Optional readDirectory

  • readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]
  • Parameters

    • path: string
    • Optional extensions: readonly string[]
    • Optional exclude: readonly string[]
    • Optional include: readonly string[]
    • Optional depth: number

    Returns string[]

readFile

  • readFile(path: string, encoding?: string): undefined | string
  • Parameters

    • path: string
    • Optional encoding: string

    Returns undefined | string

Optional realpath

  • realpath(path: string): string
  • Parameters

    • path: string

    Returns string

Optional resolveModuleNames

  • resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: undefined | string[], redirectedReference: undefined | ResolvedProjectReference, options: CompilerOptions, containingSourceFile?: SourceFile): (undefined | ResolvedModule)[]
  • Parameters

    • moduleNames: string[]
    • containingFile: string
    • reusedNames: undefined | string[]
    • redirectedReference: undefined | ResolvedProjectReference
    • options: CompilerOptions
    • Optional containingSourceFile: SourceFile

    Returns (undefined | ResolvedModule)[]

Optional resolveTypeReferenceDirectives

  • resolveTypeReferenceDirectives(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: undefined | ResolvedProjectReference, options: CompilerOptions, containingFileMode?: CommonJS | ESNext): (undefined | ResolvedTypeReferenceDirective)[]
  • Parameters

    • typeDirectiveNames: string[] | FileReference[]
    • containingFile: string
    • redirectedReference: undefined | ResolvedProjectReference
    • options: CompilerOptions
    • Optional containingFileMode: CommonJS | ESNext

    Returns (undefined | ResolvedTypeReferenceDirective)[]

Optional trace

  • trace(s: string): void
  • Parameters

    • s: string

    Returns void

Optional useCaseSensitiveFileNames

  • useCaseSensitiveFileNames(): boolean
  • Returns boolean

Optional writeFile

  • writeFile(fileName: string, content: string): void
  • Parameters

    • fileName: string
    • content: string

    Returns void

Generated using TypeDoc