You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support COPILOT_HOME env var to relocate Copilot home directory. #314806
On Windows, the extension uses a “Copilot home” directory that falls back to a dot-folder under the user profile (e.g. C:\Users\<user>\.copilot). This can clutter the user’s home directory with Unix-style dot folders. Although the code checks XDG_STATE_HOME, Windows does not implement or recognize the XDG Base Directory Specification by default, so XDG_STATE_HOME is typically unset and not a practical configuration mechanism for Windows users.
Environment
OS: Windows
VS Code version: 1.119.0
Current behavior
The Copilot home directory is derived from XDG_STATE_HOME (if set) and otherwise falls back to the OS home directory:
I just wanted to note that running VS Code in portable mode (data folder in root dir) doesn't affect the creation of this folder (but it should save this in the VS Code folder, since it is running in portable mode)
Activity
Risae commentedon Jun 27, 2026
I just wanted to note that running VS Code in portable mode (
datafolder in root dir) doesn't affect the creation of this folder (but it should save this in the VS Code folder, since it is running in portable mode)