Interface ILanguageService

Index

Methods

Methods

public cleanupSemanticCache()

public getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[]

Parameters

  • fileName: string
  • position: number

Returns

TextSpan[]

public getBreakpointStatementAtPosition(fileName: string, position: number): SpanInfo

Parameters

  • fileName: string
  • position: number

Returns

SpanInfo

public getCompilerOptionsDiagnostics(): Diagnostic[]

Returns

Diagnostic[]

public getCompletionEntryDetails(fileName: string, position: number, entryName: string): CompletionEntryDetails

Parameters

  • fileName: string
  • position: number
  • entryName: string

Returns

CompletionEntryDetails

public getCompletionsAtPosition(fileName: string, position: number, isMemberCompletion: boolean): CompletionInfo

Parameters

  • fileName: string
  • position: number
  • isMemberCompletion: boolean

Returns

CompletionInfo

public getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[]

Parameters

  • fileName: string
  • position: number

Returns

DefinitionInfo[]

public getEmitOutput(fileName: string): EmitOutput

Parameters

  • fileName: string

Returns

EmitOutput

public getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getFormattingEditsForDocument(fileName: string, minChar: number, limChar: number, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getFormattingEditsForRange(fileName: string, minChar: number, limChar: number, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getFormattingEditsOnPaste(fileName: string, minChar: number, limChar: number, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getImplementorsAtPosition(fileName: string, position: number): ReferenceEntry[]

Parameters

  • fileName: string
  • position: number

Returns

ReferenceEntry[]

public getIndentationAtPosition(fileName: string, position: number, options: EditorOptions): number

Parameters

Returns

number

public getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): SpanInfo

Parameters

  • fileName: string
  • startPos: number
  • endPos: number

Returns

SpanInfo

public getNavigateToItems(searchValue: string): NavigateToItem[]

Parameters

  • searchValue: string

Returns

NavigateToItem[]

public getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]

Parameters

  • fileName: string
  • position: number

Returns

ReferenceEntry[]

public getOutliningRegions(fileName: string): TextSpan[]

Parameters

  • fileName: string

Returns

TextSpan[]

public getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[]

Parameters

  • fileName: string
  • position: number

Returns

ReferenceEntry[]

public getScriptLexicalStructure(fileName: string): NavigateToItem[]

Parameters

  • fileName: string

Returns

NavigateToItem[]

public getSemanticDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getSignatureAtPosition(fileName: string, position: number): SignatureInfo

Parameters

  • fileName: string
  • position: number

Returns

SignatureInfo

public getSyntacticDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getSyntaxTree(fileName: string): SyntaxTree

Parameters

  • fileName: string

Returns

SyntaxTree

public getTypeAtPosition(fileName: string, position: number): TypeInfo

Parameters

  • fileName: string
  • position: number

Returns

TypeInfo

public refresh()