Skip to content

Commit 2682b89

Browse files
committed
feat(amazonq): Add lsp downloading support for windows/lunx
1 parent b3f2e82 commit 2682b89

File tree

1 file changed

+7
-1
lines changed
  • packages/core/src/shared/vscode

1 file changed

+7
-1
lines changed

packages/core/src/shared/vscode/env.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,14 @@ export function getApplicationSupportFolder() {
277277
case 'darwin': {
278278
return path.join(os.homedir(), 'Library/Application Support')
279279
}
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+
}
280286
default: {
281-
throw new Error('Only mac is supported right now')
287+
throw new Error(`Unsupported platform: ${process.platform}. Expected 'darwin', 'win32', or 'linux'.`)
282288
}
283289
}
284290
}

0 commit comments

Comments
 (0)