mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Inlay hints: bump collector version + make event id meaningful
GitOrigin-RevId: 1f693cd92f4ed576cab4445609548d2778990db5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8c05e0aac5
commit
a101f2c47d
+5
-2
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user