diff options
| author | Richie Foreman <[email protected]> | 2025-08-17 12:43:21 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-17 16:43:21 +0000 |
| commit | 2998f27f703282359f6389d1c2d8758fc6a14955 (patch) | |
| tree | a7e3ff7f969c44e61ab27240cdd615e291b6deae /packages/core/src/ide/detect-ide.ts | |
| parent | ec1fa954d18ec9abab3ce669536dd24559a499f1 (diff) | |
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/core/src/ide/detect-ide.ts')
| -rw-r--r-- | packages/core/src/ide/detect-ide.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/core/src/ide/detect-ide.ts b/packages/core/src/ide/detect-ide.ts index 5cc3cb56..5eca5429 100644 --- a/packages/core/src/ide/detect-ide.ts +++ b/packages/core/src/ide/detect-ide.ts @@ -63,28 +63,28 @@ export function getIdeInfo(ide: DetectedIde): IdeInfo { export function detectIde(): DetectedIde | undefined { // Only VSCode-based integrations are currently supported. - if (process.env.TERM_PROGRAM !== 'vscode') { + if (process.env['TERM_PROGRAM'] !== 'vscode') { return undefined; } - if (process.env.__COG_BASHRC_SOURCED) { + if (process.env['__COG_BASHRC_SOURCED']) { return DetectedIde.Devin; } - if (process.env.REPLIT_USER) { + if (process.env['REPLIT_USER']) { return DetectedIde.Replit; } - if (process.env.CURSOR_TRACE_ID) { + if (process.env['CURSOR_TRACE_ID']) { return DetectedIde.Cursor; } - if (process.env.CODESPACES) { + if (process.env['CODESPACES']) { return DetectedIde.Codespaces; } - if (process.env.EDITOR_IN_CLOUD_SHELL || process.env.CLOUD_SHELL) { + if (process.env['EDITOR_IN_CLOUD_SHELL'] || process.env['CLOUD_SHELL']) { return DetectedIde.CloudShell; } - if (process.env.TERM_PRODUCT === 'Trae') { + if (process.env['TERM_PRODUCT'] === 'Trae') { return DetectedIde.Trae; } - if (process.env.FIREBASE_DEPLOY_AGENT || process.env.MONOSPACE_ENV) { + if (process.env['FIREBASE_DEPLOY_AGENT'] || process.env['MONOSPACE_ENV']) { return DetectedIde.FirebaseStudio; } return DetectedIde.VSCode; |
