mirror of
https://github.com/coder/code-server.git
synced 2025-08-01 19:30:05 +08:00
Update to VS Code 1.52.1
This commit is contained in:
@ -5,12 +5,7 @@
|
||||
|
||||
import { FileAccess } from 'vs/base/common/network';
|
||||
|
||||
interface IPaths {
|
||||
getAppDataPath(platform: string): string;
|
||||
getDefaultUserDataPath(platform: string): string;
|
||||
}
|
||||
|
||||
const pathsPath = FileAccess.asFileUri('paths', require).fsPath;
|
||||
const paths = require.__$__nodeRequire<IPaths>(pathsPath);
|
||||
export const getAppDataPath = paths.getAppDataPath;
|
||||
const paths = require.__$__nodeRequire<{ getDefaultUserDataPath(): string }>(pathsPath);
|
||||
|
||||
export const getDefaultUserDataPath = paths.getDefaultUserDataPath;
|
||||
|
Reference in New Issue
Block a user