Files
code-server/packages/vscode/src/fill/environmentService.ts
Kyle Carberry 4af84fcaf6 Add flags for customizing user data dir and extensions dir (#420)
* Add flags for customizing extensions directory

* Update @coder/nbin
2019-04-03 17:07:47 -05:00

17 lines
503 B
TypeScript

import * as path from "path";
import * as paths from "./paths";
import * as environment from "vs/platform/environment/node/environmentService";
export class EnvironmentService extends environment.EnvironmentService {
public get sharedIPCHandle(): string {
return paths.getSocketPath() || super.sharedIPCHandle;
}
public get extensionsPath(): string {
return paths.getExtensionsDirectory();
}
}
const target = environment as typeof environment;
target.EnvironmentService = EnvironmentService;