@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
21 lines (20 loc) • 817 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { homedir, tmpdir } from 'os';
import { AbstractNativeEnvironmentService } from '../common/environmentService.mjs';
import { getUserDataPath } from './userDataPath.mjs';
export class NativeEnvironmentService extends AbstractNativeEnvironmentService {
constructor(args, productService) {
super(
args,
{
homeDir: homedir(),
tmpDir: tmpdir(),
userDataDir: getUserDataPath(args, productService.nameShort),
},
productService,
);
}
}