Can I configure Copilot to use custom directory for all downloads? #185271
Replies: 2 comments
-
|
this happens because copilot tries to create a temporary working folder inside the vscode extensions directory and since your filesystem is read only it fails. there is currently no supported way to redirect that folder to temp or another cache location .copilot assumes the extensions folder is writable so the only real fixes are to make that directory writable run vscode in a writable user space or avoid using copilot in that environment ,it’s a design limitation not a misconfiguration on your side . HOPE IT HELPS |
Beta Was this translation helpful? Give feedback.
-
|
No, there is currently no specific setting (e.g., in The GitHub Copilot extension is designed with the assumption that the directory where it is installed is writable. When it initializes, it attempts to download and unpack the specific language server binary required for your OS into its own folder (inside To fix this, you must trick VS Code into using a writable location for all extensions. The Workaround: Redirect the Extensions DirectorySince you cannot change where Copilot writes, you must change where VS Code thinks the extensions are located. You can do this using a Command Line Interface (CLI) argument when launching VS Code. Steps to resolve:
# Example for Linux/Mac
code --extensions-dir ~/writable-extensions-folder
:: Example for Windows
code.exe --extensions-dir "C:\Temp\writable-extensions"
Why this worksBy redirecting the entire extensions directory, you provide Copilot with a "sandbox" where it has full write permissions. It will download its dependencies (the
Video ResourceFor a visual demonstration of using this command-line argument, this video shows the exact process of changing the extensions path. ... [How to change visual studio code extensions path](https://www.youtube.com/watch?v=ESd2Bw4D9w8) ... This video is relevant because it specifically demonstrates using the Immediate Next StepI can write a quick startup script ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
VS Code
Body
I am running VS Code and extensions from a readonly file system and Copilot configuration fails as it tries to create a folder named
.<random GUID>in the extensions folder.Is there a way to make it put that folder elsewhere? From the looks of it, it should go to
$TEMPor maybe some shared cache folder.Beta Was this translation helpful? Give feedback.
All reactions