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
Name | Type |
---|---|
activeTextEditor | undefined | TextEditor |
visibleTextEditors | readonly TextEditor [] |
Returns
A list of tokens along with their ranks, sorted by decreasing rank