MCPcopy Create free account
hub / github.com/arctic-cli/interface / ide

Function ide

packages/arctic/src/ide/index.ts:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 )
35
36 export function ide() {
37 if (process.env["TERM_PROGRAM"] === "vscode") {
38 const v = process.env["GIT_ASKPASS"]
39 for (const ide of SUPPORTED_IDES) {
40 if (v?.includes(ide.name)) return ide.name
41 }
42 }
43 return "unknown"
44 }
45
46 export function cmd() {
47 const name = ide()

Callers 1

cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected