Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 106 additions & 84 deletions extensions/configuration-editing/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions extensions/configuration-editing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"publisher": "vscode",
"license": "MIT",
"engines": {
"vscode": "^1.0.0"
"vscode": "^1.122.0"
},
"icon": "images/icon.png",
"activationEvents": [
Expand All @@ -31,9 +31,9 @@
"watch-typecheck-web": "tsgo --project ./tsconfig.browser.json --noEmit --watch"
},
"dependencies": {
"@octokit/rest": "^21.1.1",
"@octokit/rest": "^22.0.1",
"jsonc-parser": "^3.2.0",
"tunnel": "^0.0.6"
"undici": "^7.25.0"
},
"capabilities": {
"virtualWorkspaces": true,
Expand Down
2 changes: 1 addition & 1 deletion extensions/configuration-editing/src/browser/net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

export const agent = undefined;
export const proxyFetch: typeof globalThis.fetch = globalThis.fetch.bind(globalThis);
6 changes: 3 additions & 3 deletions extensions/configuration-editing/src/importExportProfiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Octokit } from '@octokit/rest';
import * as vscode from 'vscode';
import { basename } from 'path';
import { agent } from './node/net';
import { proxyFetch } from './node/net';

class GitHubGistProfileContentHandler implements vscode.ProfileContentHandler {

Expand All @@ -23,7 +23,7 @@ class GitHubGistProfileContentHandler implements vscode.ProfileContentHandler {
const { Octokit } = await import('@octokit/rest');

return new Octokit({
request: { agent },
request: { fetch: proxyFetch },
userAgent: 'GitHub VSCode',
auth: `token ${token}`
});
Expand Down Expand Up @@ -54,7 +54,7 @@ class GitHubGistProfileContentHandler implements vscode.ProfileContentHandler {
if (!this._public_octokit) {
this._public_octokit = (async () => {
const { Octokit } = await import('@octokit/rest');
return new Octokit({ request: { agent }, userAgent: 'GitHub VSCode' });
return new Octokit({ request: { fetch: proxyFetch }, userAgent: 'GitHub VSCode' });
})();
}
return this._public_octokit;
Expand Down
Loading
Loading