Module: processTargets/modifiers/getContainingScope
Functions
getContainingScope
▸ getContainingScope(scopeHandler, editor, position, direction): undefined | TargetScope
Gets the smallest containing scope, preferring scopes in direction direction
Parameters
| Name | Type |
|---|---|
scopeHandler | ScopeHandler |
editor | TextEditor |
position | Position |
direction | Direction |
Returns
undefined | TargetScope