Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: vscode portable mode not detected by cody-ai\config.json #5597

Open
dreamflow opened this issue Sep 16, 2024 · 0 comments
Open

bug: vscode portable mode not detected by cody-ai\config.json #5597

dreamflow opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working clients/vscode

Comments

@dreamflow
Copy link

dreamflow commented Sep 16, 2024

Version

1.34.3

Describe the bug

when vscode is started in portable mode
https://code.visualstudio.com/docs/editor/portable
the cody-ai extension doesn't detect that
and writes its config file "cody-ai\config.json"
to the non-portable location
C:/User//AppData/Roaming/cody-ai/config.json
( probably derived via the env var APPDATA ).

Expected behavior

in vscode portable mode the config-file "cody-ai/config.json"
needs instead to be written in the portable "data/"-dir (or
into one of its subfolders) .
this portable "data/"-dir is avavailable in vscode portable
mode in the env-var VSCODE_PORTABLE , that holds the
absolute dir path to the "data/"-dir .
for example the portable "user-data/"-dir and "User/"-dir
are reachable via
"{VSCODE_PORTABLE}/user-data/"
"{VSCODE_PORTABLE}/user-data/User/"
the env-var VSCODE_PORTABLE is only available in vscode
portable mode and can be used to distinguish from
vscode normal standard mode (= non portable mode ) .

Additional context

my environment :
vscode 64bit 1.93.1
Win10 pro 64bit 22H2

@dreamflow dreamflow added bug Something isn't working clients/vscode labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clients/vscode
Projects
None yet
Development

No branches or pull requests

1 participant