refactor(native-command): require explicit window visibility

This commit is contained in:
HYD@OVERTON authored and Yudong Han committed 2026-09-27 23:55:26 +08:00
1 parent a895066443
commit 989fc3e2f5
18 files changed
+74 -73

No files matched your search

@@ -11,7 +11,7 @@ describe('system Documents directory', () => {
const run = vi.fn<NativeCommandRunner>(async () => ({ stdout, stderr: '' }))
const signal = new AbortController().signal
await expect(defaultWorkspaceDirectory(undefined, signal, { platform, run })).resolves.toBe(path)
expect(run).toHaveBeenCalledWith(command, expect.any(Array), signal)
expect(run).toHaveBeenCalledWith(command, expect.any(Array), signal, 'hidden')
})
it('uses the configured directory without a system lookup', async () => {