From a101f2c47dd759f9be227260049234f7c46fc272 Mon Sep 17 00:00:00 2001 From: "Roman.Ivanov" Date: Wed, 9 Oct 2019 13:55:03 +0700 Subject: [PATCH] Inlay hints: bump collector version + make event id meaningful GitOrigin-RevId: 1f693cd92f4ed576cab4445609548d2778990db5 --- .../codeInsight/hints/InlayProviderUsageCollector.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hints/InlayProviderUsageCollector.kt b/platform/lang-impl/src/com/intellij/codeInsight/hints/InlayProviderUsageCollector.kt index 60252c86739c..54b9fae37ed4 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hints/InlayProviderUsageCollector.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/hints/InlayProviderUsageCollector.kt @@ -34,12 +34,15 @@ class InlayProviderUsageCollector : ProjectUsagesCollector() { private fun getModelEvent(model: InlayProviderSettingsModel, language: Language): MetricEvent { val usageData = FeatureUsageData() .addLanguage(language) - .addData("id", StatisticsEventEscaper.escapeFieldName(model.id)) .addData("enabled", model.isEnabled) .addPluginInfo(getPluginInfo(model.javaClass)) for (case in model.cases) { usageData.addData(StatisticsEventEscaper.escapeFieldName(case.id), case.value) } - return MetricEvent("settings", usageData) + return MetricEvent(model.id, usageData) + } + + override fun getVersion(): Int { + return 2 } } \ No newline at end of file