Skip to content

Commit

Permalink
#823 - added support for v1.92.0
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Aug 5, 2024
1 parent 42f6557 commit 45f2794
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/Copilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> {
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;
}

Expand Down

0 comments on commit 45f2794

Please sign in to comment.