mirror of https://github.com/coder/code-server.git
Pass data directory when forking with bootstrap
This commit is contained in:
parent
8b8bef015e
commit
d9fc29fb0b
|
@ -7,7 +7,7 @@ import { logger } from "@coder/logger";
|
||||||
|
|
||||||
// tslint:disable no-any
|
// 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 {
|
export interface Disposer extends IDisposable {
|
||||||
onDidDispose: (cb: () => void) => void;
|
onDidDispose: (cb: () => void) => void;
|
||||||
|
|
|
@ -162,7 +162,7 @@ export class Entry extends Command {
|
||||||
builtInExtensionsDirectory: builtInExtensionsDir,
|
builtInExtensionsDirectory: builtInExtensionsDir,
|
||||||
dataDirectory: dataDir,
|
dataDirectory: dataDir,
|
||||||
workingDirectory: workingDir,
|
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) {
|
if (options && options.env && options.env.AMD_ENTRYPOINT) {
|
||||||
return forkModule(options.env.AMD_ENTRYPOINT, args, options, dataDir);
|
return forkModule(options.env.AMD_ENTRYPOINT, args, options, dataDir);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue