mirror of
https://github.com/coder/code-server.git
synced 2026-02-05 06:23:35 -06:00
22 lines
999 B
TypeScript
22 lines
999 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* 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 { NativeParsedArgs } from 'vs/platform/environment/common/argv';
|
|
import { getUserDataPath } from 'vs/platform/environment/node/userDataPath';
|
|
import { AbstractNativeEnvironmentService } from 'vs/platform/environment/common/environmentService';
|
|
import { IProductService } from 'vs/platform/product/common/productService';
|
|
|
|
export class NativeEnvironmentService extends AbstractNativeEnvironmentService {
|
|
|
|
constructor(args: NativeParsedArgs, productService: IProductService) {
|
|
super(args, {
|
|
homeDir: homedir(),
|
|
tmpDir: tmpdir(),
|
|
userDataDir: getUserDataPath(args)
|
|
}, productService);
|
|
}
|
|
}
|