mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 02:06:38 +01:00
Migrate github extension to ESM (2nd attempt) (#248312)
* Revert "GitHub - revert ESM migration (#247322)"
This reverts commit 2047ab0fff.
* use `"@vscode/extension-telemetry": "^1.0.0"` which doesn't use default export anymore
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import { AuthenticationSession, authentication, window } from 'vscode';
|
||||
import { Agent, globalAgent } from 'https';
|
||||
import { graphql } from '@octokit/graphql/dist-types/types';
|
||||
import { graphql } from '@octokit/graphql/types';
|
||||
import { Octokit } from '@octokit/rest';
|
||||
import { httpsOverHttp } from 'tunnel';
|
||||
import { URL } from 'url';
|
||||
@@ -71,7 +71,7 @@ export async function getOctokitGraphql(): Promise<graphql> {
|
||||
const token = session.accessToken;
|
||||
const { graphql } = await import('@octokit/graphql');
|
||||
|
||||
return graphql.defaults({
|
||||
return graphql({
|
||||
headers: {
|
||||
authorization: `token ${token}`
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user