@@ -8,7 +8,7 @@ import * as os from "os"
8
8
import * as path from "path"
9
9
import safeCompare from "safe-compare"
10
10
import * as util from "util"
11
- import xdgBasedir from "xdg-basedir"
11
+ import { xdgConfig , xdgData , xdgRuntime } from "xdg-basedir"
12
12
import { vsRootPath } from "./constants"
13
13
14
14
export interface Paths {
@@ -65,10 +65,10 @@ export function getEnvPaths(platform = process.platform): Paths {
65
65
return {
66
66
// envPaths uses native directories so force Darwin to use the XDG spec
67
67
// to align with other CLI tools.
68
- data : xdgBasedir . data ? append ( xdgBasedir . data ) : paths . data ,
69
- config : xdgBasedir . config ? append ( xdgBasedir . config ) : paths . config ,
68
+ data : xdgData ? append ( xdgData ) : paths . data ,
69
+ config : xdgConfig ? append ( xdgConfig ) : paths . config ,
70
70
// Fall back to temp if there is no runtime dir.
71
- runtime : xdgBasedir . runtime ? append ( xdgBasedir . runtime ) : paths . temp ,
71
+ runtime : xdgRuntime ? append ( xdgRuntime ) : paths . temp ,
72
72
}
73
73
case "win32" :
74
74
return {
@@ -82,7 +82,7 @@ export function getEnvPaths(platform = process.platform): Paths {
82
82
data : paths . data ,
83
83
config : paths . config ,
84
84
// Fall back to temp if there is no runtime dir.
85
- runtime : xdgBasedir . runtime ? append ( xdgBasedir . runtime ) : paths . temp ,
85
+ runtime : xdgRuntime ? append ( xdgRuntime ) : paths . temp ,
86
86
}
87
87
}
88
88
}
0 commit comments