Hierarchy

  • TypeScriptWorker

Methods

  • Get other occurrences which should be updated when renaming the item at the given file and position.

    Returns

    Promise<readonly typescript.RenameLocation[] | undefined>

    Parameters

    • fileName: string
    • positon: number
    • findInStrings: boolean
    • findInComments: boolean
    • providePrefixAndSuffixTextForRename: boolean

    Returns Promise<readonly any[]>

  • Get possible code fixes at the given position in the file.

    Returns

    Promise<ReadonlyArray<typescript.CodeFixAction>>

    Parameters

    • fileName: string
    • start: number
    • end: number
    • errorCodes: number[]
    • formatOptions: any

      typescript.FormatCodeOptions

    Returns Promise<readonly any[]>

  • Get diagnostic messages related to the current compiler options.

    Parameters

    • fileName: string

      Not used

    Returns Promise<Diagnostic[]>

  • Get code completion details for the given file, position, and entry.

    Returns

    Promise<typescript.CompletionEntryDetails | undefined>

    Parameters

    • fileName: string
    • position: number
    • entry: string

    Returns Promise<any>

  • Get code completions for the given file and position.

    Returns

    Promise<typescript.CompletionInfo | undefined>

    Parameters

    • fileName: string
    • position: number

    Returns Promise<any>

  • Get the definition of the item at the given position in the file.

    Returns

    Promise<ReadonlyArray<typescript.DefinitionInfo> | undefined>

    Parameters

    • fileName: string
    • position: number

    Returns Promise<readonly any[]>

  • Get transpiled output for the given file.

    Returns

    typescript.EmitOutput

    Parameters

    • fileName: string

    Returns Promise<EmitOutput>

  • Get formatting changes which should be applied after the given keystroke.

    Returns

    Promise<typescript.TextChange[]>

    Parameters

    • fileName: string
    • postion: number
    • ch: string
    • options: any

      typescript.FormatCodeOptions

    Returns Promise<any[]>

  • Get changes which should be applied to format the given file.

    Returns

    Promise<typescript.TextChange[]>

    Parameters

    • fileName: string
    • options: any

      typescript.FormatCodeOptions

    Returns Promise<any[]>

  • Get changes which should be applied to format the given range in the file.

    Returns

    Promise<typescript.TextChange[]>

    Parameters

    • fileName: string
    • start: number
    • end: number
    • options: any

      typescript.FormatCodeOptions

    Returns Promise<any[]>

  • Get outline entries for the item at the given position in the file.

    Returns

    Promise<typescript.NavigationBarItem[]>

    Parameters

    • fileName: string

    Returns Promise<any[]>

  • Get other ranges which are related to the item at the given position in the file (often used for highlighting).

    Returns

    Promise<ReadonlyArray<typescript.ReferenceEntry> | undefined>

    Parameters

    • fileName: string
    • position: number

    Returns Promise<readonly any[]>

  • Get quick info for the item at the given position in the file.

    Returns

    Promise<typescript.QuickInfo | undefined>

    Parameters

    • fileName: string
    • position: number

    Returns Promise<any>

  • Get references to the item at the given position in the file.

    Returns

    Promise<typescript.ReferenceEntry[] | undefined>

    Parameters

    • fileName: string
    • position: number

    Returns Promise<any[]>

  • Get edits which should be applied to rename the item at the given file and position (or a failure reason).

    Returns

    Promise<typescript.RenameInfo>

    Parameters

    • fileName: string
    • positon: number
    • options: any

      typescript.RenameInfoOptions

    Returns Promise<any>

  • Get the content of a given file.

    Parameters

    • fileName: string

    Returns Promise<string>

  • Get diagnostic messages for any semantic issues in the given file.

    Parameters

    • fileName: string

    Returns Promise<Diagnostic[]>

  • Get signature help items for the item at the given file and position.

    Returns

    Promise<typescript.SignatureHelpItems | undefined>

    Parameters

    • fileName: string
    • position: number
    • options: any

    Returns Promise<any>

  • Get diagnostic messages for any suggestions related to the given file.

    Parameters

    • fileName: string

    Returns Promise<Diagnostic[]>

  • Get diagnostic messages for any syntax issues in the given file.

    Parameters

    • fileName: string

    Returns Promise<Diagnostic[]>

  • Get inlay hints in the range of the file.

    Returns

    Promise<typescript.InlayHint[]>

    Parameters

    • fileName: string
    • start: number
    • end: number

    Returns Promise<readonly any[]>