diff --git a/package-lock.json b/package-lock.json index 6a1ad13..9bc0a17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-github-issue-notebooks", - "version": "0.0.133", + "version": "0.0.134", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-github-issue-notebooks", - "version": "0.0.133", + "version": "0.0.134", "dependencies": { "@octokit/rest": "^22.0.0" }, diff --git a/package.json b/package.json index a7860a6..5a9f294 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "GitHub Issue Notebooks for VS Code", "publisher": "ms-vscode", "preview": true, - "version": "0.0.133", + "version": "0.0.134", "type": "module", "repository": { "url": "https://github.com/microsoft/vscode-github-issue-notebooks" diff --git a/src/extension/notebookProvider.ts b/src/extension/notebookProvider.ts index 09268fd..09b1271 100644 --- a/src/extension/notebookProvider.ts +++ b/src/extension/notebookProvider.ts @@ -71,6 +71,8 @@ export class IssuesNotebookKernel { return; } + const octokit = await this.octokit.lib(); + if (!this.octokit.isAuthenticated) { const atMe = isUsingAtMe(query, project); if (atMe > 0) { @@ -106,7 +108,6 @@ export class IssuesNotebookKernel { exec.token.onCancellationRequested(_ => abortCtl.abort()); for (let queryData of allQueryData) { - const octokit = await this.octokit.lib(); let page = 1; let count = 0;