MCPcopy
hub / github.com/codeaashu/claude-code / getInstallationEnv

Function getInstallationEnv

src/utils/ide.ts:913–925  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

911}
912
913function getInstallationEnv(): NodeJS.ProcessEnv | undefined {
914 // Cursor on Linux may incorrectly implement
915 // the `code` command and actually launch the UI.
916 // Make this error out if this happens by clearing the DISPLAY
917 // environment variable.
918 if (getPlatform() === 'linux') {
919 return {
920 ...process.env,
921 DISPLAY: '',
922 }
923 }
924 return undefined
925}
926
927function getClaudeCodeVersion() {
928 return MACRO.VERSION

Callers 4

isIDEExtensionInstalledFunction · 0.85
installIDEExtensionFunction · 0.85
installFromArtifactoryFunction · 0.85

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected