Skip to content

Commit c0f4de3

Browse files
fix(update): hide post-core update and completion cache child windows on Windows
1 parent fa83925 commit c0f4de3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/cli/update-cli/shared.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export async function tryWriteCompletionCache(root: string, jsonMode: boolean):
271271

272272
const result = spawnSync(resolveNodeRunner(), [binPath, "completion", "--write-state"], {
273273
cwd: root,
274+
windowsHide: true,
274275
env: {
275276
...process.env,
276277
[COMPLETION_SKIP_PLUGIN_COMMANDS_ENV]: "1",

src/cli/update-cli/update-command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,7 @@ async function continuePostCoreUpdateInFreshProcess(params: {
18511851
const childStdio = resolvePostCoreUpdateChildStdio();
18521852
const child = spawn(resolveNodeRunner(), argv, {
18531853
stdio: childStdio,
1854+
windowsHide: true,
18541855
env: {
18551856
...stripGatewayServiceMarkerEnv(disableUpdatedPackageCompileCacheEnv(process.env)),
18561857
[POST_CORE_UPDATE_ENV]: "1",

0 commit comments

Comments
 (0)