Go to https://github.com/settings/copilot and turn on “Copilot Chat in IDEs”.
In Visual Studio, re-sign in via Extensions → GitHub Copilot → Sign in and authorize the Chat app in your browser.
Restart Visual Studio and reopen the Copilot Chat window.