Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/packages/vscode/src/fill/environmentService.ts

19 lines
553 B
TypeScript

import * as paths from "./paths";
import * as environment from "vs/platform/environment/node/environmentService";
/**
* Customize paths using data received from the initialization message.
*/
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;