From 21b54cd6169a5e1b05dfa380289caa3c0c249297 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:48:33 +0000 Subject: [PATCH 1/2] Initial plan From 56f0aefb57803017565100d46378f65dd739cc95 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:00:34 +0000 Subject: [PATCH 2/2] Use global fetch instead of cross-fetch to avoid node-fetch url.parse deprecation Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- src/authentication/githubServer.ts | 1 - src/common/uri.ts | 1 - src/github/copilotApi.ts | 1 - src/github/credentials.ts | 1 - tsconfig.json | 4 ++++ 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/authentication/githubServer.ts b/src/authentication/githubServer.ts index 78f192c177..36ff0e2395 100644 --- a/src/authentication/githubServer.ts +++ b/src/authentication/githubServer.ts @@ -3,7 +3,6 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import fetch from 'cross-fetch'; import * as vscode from 'vscode'; import { HostHelper } from './configuration'; import { GitHubServerType } from '../common/authentication'; diff --git a/src/common/uri.ts b/src/common/uri.ts index dfe954370e..a10253c2f8 100644 --- a/src/common/uri.ts +++ b/src/common/uri.ts @@ -7,7 +7,6 @@ import { Buffer } from 'buffer'; import * as pathUtils from 'path'; -import fetch from 'cross-fetch'; import * as vscode from 'vscode'; import { RemoteInfo } from '../../common/types'; import { Repository } from '../api/api'; diff --git a/src/github/copilotApi.ts b/src/github/copilotApi.ts index 7b172e3cae..74dbb81de3 100644 --- a/src/github/copilotApi.ts +++ b/src/github/copilotApi.ts @@ -3,7 +3,6 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import fetch from 'cross-fetch'; import * as vscode from 'vscode'; import { CredentialStore } from './credentials'; import { LoggingOctokit } from './loggingOctokit'; diff --git a/src/github/credentials.ts b/src/github/credentials.ts index b633428403..efcd1a3b32 100644 --- a/src/github/credentials.ts +++ b/src/github/credentials.ts @@ -7,7 +7,6 @@ import { Octokit } from '@octokit/rest'; import { ApolloClient, InMemoryCache } from 'apollo-boost'; import { setContext } from 'apollo-link-context'; import { createHttpLink } from 'apollo-link-http'; -import fetch from 'cross-fetch'; import * as vscode from 'vscode'; import { IAccount } from './interface'; import { LoggingApolloClient, LoggingOctokit, RateLogger } from './loggingOctokit'; diff --git a/tsconfig.json b/tsconfig.json index c84f7118b4..6e2aae1c50 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,10 @@ "jsx": "react", "jsxFactory": "vscpp", "jsxFragmentFactory": "vscppf", + "lib": [ + "es2019", + "dom" + ], "strictNullChecks": true, "tsBuildInfoFile": "tsconfig.tsbuildinfo", "types": [