Module: processTargets/modifiers/scopeHandlers/getScopeHandler
Functions
getScopeHandler
▸ getScopeHandler(scopeType
, languageId
): ScopeHandler
| undefined
Returns a scope handler for the given scope type and language id, or undefined if the given scope type / language id combination is still using legacy pathways.
Note that once all our scope types are migrated to the new scope handler
setup for all languages, we can stop returning undefined
, change the return
type of this function, and remove the legacy checks in the clients of this
function.
Parameters
Name | Type | Description |
---|---|---|
scopeType | ScopeType | The scope type for which to get a scope handler |
languageId | string | The language id of the document where the scope handler will be used |
Returns
ScopeHandler
| undefined
A scope handler for the given scope type and language id, or undefined if the given scope type / language id combination is still using legacy pathways
Defined in
processTargets/modifiers/scopeHandlers/getScopeHandler.ts:31