Imports the previously untracked working tree as-is so that the review changes that follow (requirements -> design -> implementation) can be reviewed as diffs and reverted if needed. No content changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
1.0 KiB
JavaScript
14 lines
1.0 KiB
JavaScript
'use strict';
|
|
/** Pinned Theia 1.76 seam. Unknown process/debug inventory is never idle evidence. */
|
|
function sleepReceipt({coordinator,processManager,debugManager,snapshotPending,hostedDebugTouched}){
|
|
try{
|
|
if(!(processManager?.processes instanceof Map)||typeof debugManager?.getAll!=='function')return{known:false};
|
|
const input=coordinator.inputState();const state=coordinator.state();
|
|
// Hosted plugin debug sessions are not enumerated by the native DAP manager.
|
|
// Once used, require explicit pause until backend restart instead of guessing termination.
|
|
const known=!snapshotPending&&!hostedDebugTouched;
|
|
return{known,activeClients:input.activeClients,terminals:processManager.processes.size,debugSessions:[...debugManager.getAll()].length+(state.debugController?1:0),dirty:input.dirty,snapshotComplete:!!input.latestSnapshot&&input.latestSnapshot.digest===input.currentDiskDigest,snapshotRevision:input.latestSnapshot?.revision??0,diskDigest:input.currentDiskDigest};
|
|
}catch{return{known:false};}
|
|
}
|
|
module.exports={sleepReceipt};
|