Skip to main content

getLocalVariables

DEPRECATED: Use getLocalVariablesAsync instead. This function will throw an exception if the plugin manifest contains "documentAccess": "dynamic-page".

Returns all local variables in the current file, optionally filtering by resolved type.

Signature

getLocalVariables(type?: VariableResolvedDataType): Variable[]

Parameters

type

Filters the returned variables to only be of the given resolved type.