File tree Expand file tree Collapse file tree 3 files changed +11
-21
lines changed
Expand file tree Collapse file tree 3 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 22
33## [ UNRELEASED]
44
5+ - Add ability for users to download databases directly from GitHub. [ #1466 ] ( https://github.com/github/vscode-codeql/pull/1466 )
56- Remove ability to download databases from LGTM. [ #1467 ] ( https://github.com/github/vscode-codeql/pull/1467 )
67
78## 1.6.10 - 9 August 2022
Original file line number Diff line number Diff line change 664664 },
665665 {
666666 "command" : " codeQLDatabases.chooseDatabaseGithub" ,
667- "when" : " config.codeQL.canary && view == codeQLDatabases" ,
667+ "when" : " view == codeQLDatabases" ,
668668 "group" : " navigation"
669669 },
670670 {
878878 }
879879 ],
880880 "commandPalette" : [
881- {
882- "command" : " codeQL.authenticateToGitHub" ,
883- "when" : " config.codeQL.canary"
884- },
885881 {
886882 "command" : " codeQL.runQuery" ,
887883 "when" : " resourceLangId == ql && resourceExtname == .ql"
926922 "command" : " codeQL.viewCfg" ,
927923 "when" : " resourceScheme == codeql-zip-archive && config.codeQL.canary"
928924 },
929- {
930- "command" : " codeQL.chooseDatabaseGithub" ,
931- "when" : " config.codeQL.canary"
932- },
933925 {
934926 "command" : " codeQL.chooseDatabaseLgtm" ,
935927 "when" : " config.codeQL.canary"
11791171 },
11801172 {
11811173 "view" : " codeQLDatabases" ,
1182- "contents" : " Add a CodeQL database:\n [From a folder](command:codeQLDatabases.chooseDatabaseFolder)\n [From an archive](command:codeQLDatabases.chooseDatabaseArchive)\n [From a URL (as a zip file)](command:codeQLDatabases.chooseDatabaseInternet)"
1174+ "contents" : " Add a CodeQL database:\n [From a folder](command:codeQLDatabases.chooseDatabaseFolder)\n [From an archive](command:codeQLDatabases.chooseDatabaseArchive)\n [From a URL (as a zip file)](command:codeQLDatabases.chooseDatabaseInternet)\n [From GitHub](command:codeQLDatabases.chooseDatabaseGithub) "
11831175 },
11841176 {
11851177 "view" : " codeQLEvalLogViewer" ,
Original file line number Diff line number Diff line change @@ -1018,19 +1018,16 @@ async function activateWithInstalledDistribution(
10181018 }
10191019 } ;
10201020
1021- // The "authenticateToGitHub" command is internal-only.
10221021 ctx . subscriptions . push (
10231022 commandRunner ( 'codeQL.authenticateToGitHub' , async ( ) => {
1024- if ( isCanary ( ) ) {
1025- /**
1026- * Credentials for authenticating to GitHub.
1027- * These are used when making API calls.
1028- */
1029- const credentials = await Credentials . initialize ( ctx ) ;
1030- const octokit = await credentials . getOctokit ( ) ;
1031- const userInfo = await octokit . users . getAuthenticated ( ) ;
1032- void showAndLogInformationMessage ( `Authenticated to GitHub as user: ${ userInfo . data . login } ` ) ;
1033- }
1023+ /**
1024+ * Credentials for authenticating to GitHub.
1025+ * These are used when making API calls.
1026+ */
1027+ const credentials = await Credentials . initialize ( ctx ) ;
1028+ const octokit = await credentials . getOctokit ( ) ;
1029+ const userInfo = await octokit . users . getAuthenticated ( ) ;
1030+ void showAndLogInformationMessage ( `Authenticated to GitHub as user: ${ userInfo . data . login } ` ) ;
10341031 } ) ) ;
10351032
10361033 ctx . subscriptions . push (
You can’t perform that action at this time.
0 commit comments