MCPcopy
hub / github.com/anomalyco/opencode / removeWindowID

Function removeWindowID

packages/desktop/src/main/windows.ts:245–248  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

243}
244
245function removeWindowID(id: string) {
246 writeWindowIDs(readWindowIDs().filter((item) => item !== id))
247 rmSync(join(app.getPath("userData"), windowStateFile(id)), { force: true })
248}
249
250function windowStateFile(id: string) {
251 return `window-state-${id.replace(/[^a-zA-Z0-9._-]/g, "-")}.json`

Callers 1

registerWindowFunction · 0.85

Calls 4

writeWindowIDsFunction · 0.85
readWindowIDsFunction · 0.85
joinFunction · 0.85
windowStateFileFunction · 0.85

Tested by

no test coverage detected