We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f2e82 commit 2682b89Copy full SHA for 2682b89
packages/core/src/shared/vscode/env.ts
@@ -277,8 +277,14 @@ export function getApplicationSupportFolder() {
277
case 'darwin': {
278
return path.join(os.homedir(), 'Library/Application Support')
279
}
280
+ case 'win32': {
281
+ return process.env.APPDATA
282
+ }
283
+ case 'linux': {
284
+ return process.env.XDG_CACHE_HOME || path.join(os.homedir(), '.cache')
285
286
default: {
- throw new Error('Only mac is supported right now')
287
+ throw new Error(`Unsupported platform: ${process.platform}. Expected 'darwin', 'win32', or 'linux'.`)
288
289
290
0 commit comments