Hierarchy

Index

Constructors

constructor

Properties

args

args: string

completion

completion: string

fuse

fuse: any = undefined

Protected lastExstr

lastExstr: string

Protected lastFocused

lastFocused: CompletionOption

node

node: any

Protected optionContainer

optionContainer: HTMLElement = html`<table class="optionContainer"></table>`

options

Protected prefixes

prefixes: string[] = []

Protected sortScoredOptions

sortScoredOptions: boolean = false

Accessors

state

Methods

deselect

  • deselect(): void

filter

  • filter(exstr: string): Promise<void>

next

  • next(inc?: number): Promise<any>

onInput

  • onInput(exstr: string): Promise<void>

prev

  • prev(inc?: number): Promise<boolean>

scoredOptions

select

setStateFromScore

  • setStateFromScore(scoredOpts: ScoredOption[], autoselect?: boolean): void
  • Set option state by score

    For now just displays all scored elements (see threshold in fuse) and focus the best match.

    Parameters

    • scoredOpts: ScoredOption[]
    • Default value autoselect: boolean = false

    Returns void

shouldRefresh

  • shouldRefresh(): boolean

splitOnPrefix

  • splitOnPrefix(exstr: string): string[]

updateChain

updateDisplay

  • updateDisplay(): void

Object literals

fuseOptions

fuseOptions: object

findAllMatches

findAllMatches: boolean = true

ignoreLocation

ignoreLocation: boolean = true

includeScore

includeScore: boolean = true

keys

keys: string[] = ["fuseKeys"]

minMatchCharLength

minMatchCharLength: number = 1

shouldSort

shouldSort: boolean = true

threshold

threshold: any = config.get("completionfuzziness")