From d9fc29fb0b404e95a8a23a2341e43bd444846e25 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 22 Feb 2019 16:31:21 -0600 Subject: [PATCH] Pass data directory when forking with bootstrap --- packages/protocol/src/common/helpers.ts | 2 +- packages/server/src/cli.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/protocol/src/common/helpers.ts b/packages/protocol/src/common/helpers.ts index b3c3e79b2..20d89dd08 100644 --- a/packages/protocol/src/common/helpers.ts +++ b/packages/protocol/src/common/helpers.ts @@ -7,7 +7,7 @@ import { logger } from "@coder/logger"; // tslint:disable no-any -export type ForkProvider = (modulePath: string, args: string[], options: ForkOptions, dataDir?: string) => ChildProcess; +export type ForkProvider = (modulePath: string, args: string[], options: ForkOptions) => ChildProcess; export interface Disposer extends IDisposable { onDidDispose: (cb: () => void) => void; diff --git a/packages/server/src/cli.ts b/packages/server/src/cli.ts index cf58c2554..070f0d1fb 100644 --- a/packages/server/src/cli.ts +++ b/packages/server/src/cli.ts @@ -162,7 +162,7 @@ export class Entry extends Command { builtInExtensionsDirectory: builtInExtensionsDir, dataDirectory: dataDir, workingDirectory: workingDir, - fork: (modulePath: string, args: string[], options: ForkOptions, dataDir?: string): ChildProcess => { + fork: (modulePath: string, args: string[], options: ForkOptions): ChildProcess => { if (options && options.env && options.env.AMD_ENTRYPOINT) { return forkModule(options.env.AMD_ENTRYPOINT, args, options, dataDir); }