fix(actions): id of ActionItem is not logged correctly after execution

This commit is contained in:
Akash Yadav
2023-10-18 12:22:32 +05:30
parent 33e6a4b7ad
commit 29ca7bc64f
2 changed files with 2 additions and 2 deletions
@@ -199,7 +199,7 @@ class DefaultActionsRegistry : ActionsRegistry() {
val onMainThread = action.requiresUIThread
val context = if (onMainThread) Dispatchers.Main else Dispatchers.Default
return actionsCoroutineScope.launch(context) {
val result = withStopWatch("Action '$action.id'") {
val result = withStopWatch("Action '${action.id}'") {
action.execAction(data)
}
@@ -193,7 +193,7 @@ open class TsAnalyzeManager(val languageSpec: TsLanguageSpec, var theme: TsTheme
if (thread != this || !messageQueue.isEmpty()) {
return
}
val scopedVariables = TsScopedVariables(tree!!, localText, languageSpec)
val oldTree = (styles.spans as LineSpansGenerator?)?.tree
val copied = tree!!.copy()