Commit efe8f561 authored by Sergey Simonchik's avatar Sergey Simonchik Committed by intellij-monorepo-bot
Browse files

terminal: follow up to "recognize empty commands and commands consisting of...

terminal: follow up to "recognize empty commands and commands consisting of whitespaces in FUS" (IDEA-320268, IJ-CR-107525)

https://jetbrains.team/p/ij/reviews/107525/timeline

GitOrigin-RevId: 8f469723e920a1c5cbbff37f2c3b9cb4d5862315
parent 3aa38791
Showing with 3 additions and 2 deletions
+3 -2
......@@ -19,7 +19,7 @@ class TerminalUsageTriggerCollector : CounterUsagesCollector() {
override fun getGroup(): EventLogGroup = GROUP
companion object {
private val GROUP = EventLogGroup(GROUP_ID, 9)
private val GROUP = EventLogGroup(GROUP_ID, 11)
private val TERMINAL_COMMAND_HANDLER_FIELD = EventFields.StringValidatedByCustomRule("terminalCommandHandler",
ClassNameRuleValidator::class.java)
......
......@@ -18,7 +18,8 @@ internal object TerminalCommandUsageStatistics {
private val absolutePathCommand = TerminalCommandEventData("<absolute path>", null)
private val knownCommandToSubCommandsMap: Map<String, List<String>> = buildKnownCommandToSubCommandMap()
internal val commandExecutableField = EventFields.String("command", listOf(relativePathCommand.command, absolutePathCommand.command)
internal val commandExecutableField = EventFields.String("command", listOf(relativePathCommand.command, absolutePathCommand.command,
emptyCommand.command, whitespacesCommand.command)
+ knownCommandToSubCommandsMap.keys)
internal val subCommandField = EventFields.String("subCommand", knownCommandToSubCommandsMap.values.flatten())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment