diff --git a/src/services/Copilot.ts b/src/services/Copilot.ts index a3a5d330..da941d85 100644 --- a/src/services/Copilot.ts +++ b/src/services/Copilot.ts @@ -24,8 +24,9 @@ export class Copilot { * @returns A promise that resolves to a boolean indicating whether the extension is installed. */ public static async isInstalled(): Promise { - if (!VscodeVersion.includes('insider')) { - // At the moment Copilot is only available in the insider version of VS Code + const version = VscodeVersion.split('.').map((v) => parseInt(v)); + // GitHub Copilot requires VS Code version 1.92 or higher + if (version[0] < 1 || (version[0] === 1 && version[1] < 92)) { return false; }