[IFT] Fix parsing of the callback ID if it is greater than 999

Found that `com.intellij.AbstractBundle.getMessage` applies the formatting to the parameters passed as a `Number`. For example, it translates 1032 int to "1,032" string. And then `toInt` method fails to parse it.
Better to use String value as ID for callbacks to avoid this problem.

GitOrigin-RevId: 95a667a35f6107ec71df0da26892541d1d964b98
This commit is contained in:
Konstantin Hudyakov
2023-09-27 13:39:55 +03:00
committed by intellij-monorepo-bot
parent cae278cad6
commit 428ce848ab
4 changed files with 11 additions and 9 deletions

View File

@@ -216,7 +216,7 @@ class PythonOnboardingTourLesson :
}
}
private fun getCallBackActionId(@Suppress("SameParameterValue") actionId: String): Int {
private fun getCallBackActionId(@Suppress("SameParameterValue") actionId: String): String {
val action = getActionById(actionId)
return LearningUiManager.addCallback { invokeActionForFocusContext(action) }
}