Skip to main content

Module: util/allocateHats/getRankedTokens

Interfaces

Functions

getRankedTokens

getRankedTokens(activeTextEditor, visibleTextEditors): RankedToken[]

Constructs a list of all tokens that are visible in the given editors ordered by their rank along with their ranks

Parameters

NameType
activeTextEditorundefined | TextEditor
visibleTextEditorsreadonly TextEditor[]

Returns

RankedToken[]

A list of tokens along with their ranks, sorted by decreasing rank

Defined in

util/allocateHats/getRankedTokens.ts:13