INNER CODE UNIT · TypeScript

bundleDigest

Hmbown/CodeWhale · crates/tui/extension-host/src/main.ts:51

function bundleDigest(): string {
  try {
    return createHash('sha256').update(readFileSync(fileURLToPath(import.meta.url))).digest('hex')
  } catch {
    return 'unknown'
  }
}

// 3b. When the core goes away, take every process this host started with it.
//     On Unix the core spawns the host as the leader of its own process group
//     and says so; killing the group reaches plugin children (not ones that
//     called `setsid`). On Windows the core's Job Object does this when the
//     core's handle closes.
const OWN_GROUP = process.platform !== 'win32' && process.env.CODEWHALE_HOST_PROCESS_GROUP === '1'

function killHostTree(): never {
  if (OWN_GROUP) {
    try {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…