Copilot or Wakatime VSCode extensions not working on WSL: Solution
Pure
Posted on January 14, 2024
TLDR: add
"remote.extensionKind": {
"WakaTime.vscode-wakatime": [ "ui" ],
"GitHub.copilot": [ "ui" ],
"GitHub.copilot-chat": ["ui"]
}
to your vscode settings.json
I recently encountered a problem with Windows' WSL. When opening a project from the WSL in Visual Studio Code, two of my extensions stopped working. Wakatime and Github Copilot. After a lot of debugging, it seems to be a web request certificate error that WSL makes. To fix this, simply run the extensions locally on Windows instead of on WSL by editing your VSCode settings.json
(see TLDR).
ui
stands for running the extension locally on Windows and workspace
would mean running it on WSL.
There are also other solutions, such as ignoring the unauthorised requests or using a VPN or a proxy. But I think this is the easiest one.
Posted on January 14, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.