fix: Refer to correct replacement method in deprecation warning. by gonfunko · Pull Request #9237 · RaspberryPiFoundation/blockly
The basics
The details
Resolves
Fixes #9184
Proposed Changes
This PR updates the deprecation warning on Workspace.getVariableUsesById() to point users to Blockly.Variables.getVariableUsesById(), rather than Blockly.Workspace.getVariableMap().getVariableUsesById(). Although the latter exists on Blockly's VariableMap, it is deprecated there as well and is not present on IVariableMap, so using the suggested replacement would result in a type error. The function that this PR suggests developers use is the same as the VariableMap.getVariableUsesById() deprecation warning suggests, and is indeed not deprecated.