MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isJetBrainsTerminal

Function isJetBrainsTerminal

cli/src/utils/theme-system.ts:406–424  ·  view source on GitHub ↗
(
  env: CliEnv = getCliEnv(),
)

Source from the content-addressed store, hash-verified

404}
405
406const isJetBrainsTerminal = (
407 env: CliEnv = getCliEnv(),
408): boolean => {
409 if (env.TERMINAL_EMULATOR?.toLowerCase().includes('jetbrains')) {
410 return true
411 }
412
413 // Check JetBrains env keys
414 if (
415 env.JETBRAINS_REMOTE_RUN ||
416 env.IDEA_INITIAL_DIRECTORY ||
417 env.IDE_CONFIG_DIR ||
418 env.JB_IDE_CONFIG_DIR
419 ) {
420 return true
421 }
422
423 return false
424}
425
426const isZedTerminal = (
427 env: CliEnv = getCliEnv(),

Callers 2

detectJetBrainsThemeFunction · 0.85
setupFileWatchersFunction · 0.85

Calls 1

getCliEnvFunction · 0.90

Tested by

no test coverage detected