From 45f27946312c08ada5f21c66df39ce895449701a Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Mon, 5 Aug 2024 10:38:46 +0200 Subject: [PATCH] #823 - added support for v1.92.0 --- src/services/Copilot.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }