MCPcopy Create free account
hub / github.com/Noumena-Network/code / getInstalledVSCodeExtensionVersion

Function getInstalledVSCodeExtensionVersion

src/utils/ide.ts:990–1008  ·  view source on GitHub ↗
(
  command: string,
)

Source from the content-addressed store, hash-verified

988}
989
990async function getInstalledVSCodeExtensionVersion(
991 command: string,
992): Promise<string | null> {
993 const { stdout } = await execFileNoThrow(
994 command,
995 ['--list-extensions', '--show-versions'],
996 {
997 env: getInstallationEnv(),
998 },
999 )
1000 const lines = stdout?.split('\n') || []
1001 for (const line of lines) {
1002 const [extensionId, version] = line.split('@')
1003 if (extensionId === 'anthropic.claude-code' && version) {
1004 return version
1005 }
1006 }
1007 return null
1008}
1009
1010function getVSCodeIDECommandByParentProcess(): string | null {
1011 try {

Callers 1

installIDEExtensionFunction · 0.85

Calls 2

getInstallationEnvFunction · 0.85
execFileNoThrowFunction · 0.70

Tested by

no test coverage detected