[java debugger] collect statistics on how many "attach debugger" inlay hints are shown

This should help to estimate the number of people who could be interested
in "auto attach debugger" feature

GitOrigin-RevId: b7c7881aa6b3d2e255d58169f56ac66d9b4f5bcf
This commit is contained in:
Max Medvedev
2023-07-19 17:37:04 +02:00
committed by intellij-monorepo-bot
parent 90d9638636
commit 0f243eda4a
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.execution.impl;
import com.intellij.codeInsight.hints.presentation.InlayPresentation;
@@ -66,6 +66,7 @@ public class JavaDebuggerConsoleFilterProvider implements ConsoleFilterProvider
@Override
public EditorCustomElementRenderer createInlayRenderer(Editor editor) {
JavaDebuggerActionsCollector.attachFromConsoleInlayShown.log();
PresentationFactory factory = new PresentationFactory(editor);
InlayPresentation presentation = factory.referenceOnHover(
factory.roundWithBackground(factory.smallText("Attach debugger")),