Skip to content

Commit d9fc29f

Browse files
committed
Pass data directory when forking with bootstrap
1 parent 8b8bef0 commit d9fc29f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/protocol/src/common/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { logger } from "@coder/logger";
77

88
// tslint:disable no-any
99

10-
export type ForkProvider = (modulePath: string, args: string[], options: ForkOptions, dataDir?: string) => ChildProcess;
10+
export type ForkProvider = (modulePath: string, args: string[], options: ForkOptions) => ChildProcess;
1111

1212
export interface Disposer extends IDisposable {
1313
onDidDispose: (cb: () => void) => void;

packages/server/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class Entry extends Command {
162162
builtInExtensionsDirectory: builtInExtensionsDir,
163163
dataDirectory: dataDir,
164164
workingDirectory: workingDir,
165-
fork: (modulePath: string, args: string[], options: ForkOptions, dataDir?: string): ChildProcess => {
165+
fork: (modulePath: string, args: string[], options: ForkOptions): ChildProcess => {
166166
if (options && options.env && options.env.AMD_ENTRYPOINT) {
167167
return forkModule(options.env.AMD_ENTRYPOINT, args, options, dataDir);
168168
}

0 commit comments

Comments
 (0)