getCompletionsAtPosition

abstract fun getCompletionsAtPosition(fileName: String, position: Double, options: GetCompletionsAtPositionOptions?, formattingSettings: FormatCodeSettings = definedExternally): WithMetadata<CompletionInfo>?(source)

Gets completion entries at a particular position in a file.

Parameters

fileName

The path to the file

position

A zero-based index of the character where you want the entries

options

An object describing how the request was triggered and what kinds of code actions can be returned with the completions.

formattingSettings

settings needed for calling formatting functions.