Did some research; you may have to enable the harfbuzz features in InDesign. There is no control in the GUI for this, no checkmark in any of the preferences dialogs. Instead you may have to run a little ExtendScript (JavaScript) script for proper typesetting for Sinhala.