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

Function isVSCodeFamilyTerminal

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

Source from the content-addressed store, hash-verified

382}
383
384const isVSCodeFamilyTerminal = (
385 env: CliEnv = getCliEnv(),
386): boolean => {
387 if (env.TERM_PROGRAM?.toLowerCase() === 'vscode') {
388 return true
389 }
390
391 // Check VS Code family env keys
392 if (
393 env.VSCODE_GIT_IPC_HANDLE ||
394 env.VSCODE_PID ||
395 env.VSCODE_CWD ||
396 env.VSCODE_NLS_CONFIG ||
397 env.CURSOR_PORT ||
398 env.CURSOR
399 ) {
400 return true
401 }
402
403 return false
404}
405
406const isJetBrainsTerminal = (
407 env: CliEnv = getCliEnv(),

Callers 2

detectVSCodeThemeFunction · 0.85
setupFileWatchersFunction · 0.85

Calls 1

getCliEnvFunction · 0.90

Tested by

no test coverage detected