File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 158
158
"title" : " Restart server" ,
159
159
"category" : " Rust Analyzer"
160
160
},
161
+ {
162
+ "command" : " rust-analyzer.updateGithubToken" ,
163
+ "title" : " Update Github API token" ,
164
+ "category" : " Rust Analyzer"
165
+ },
161
166
{
162
167
"command" : " rust-analyzer.onEnter" ,
163
168
"title" : " Enhanced enter key" ,
984
989
"command" : " rust-analyzer.reload" ,
985
990
"when" : " inRustProject"
986
991
},
992
+ {
993
+ "command" : " rust-analyzer.updateGithubToken" ,
994
+ "when" : " inRustProject"
995
+ },
987
996
{
988
997
"command" : " rust-analyzer.onEnter" ,
989
998
"when" : " inRustProject"
Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ async function tryActivate(context: vscode.ExtensionContext) {
95
95
await activate ( context ) . catch ( log . error ) ;
96
96
} ) ;
97
97
98
+ ctx . registerCommand ( 'updateGithubToken' , ctx => async ( ) => {
99
+ await queryForGithubToken ( new PersistentState ( ctx . globalState ) ) ;
100
+ } ) ;
101
+
98
102
ctx . registerCommand ( 'analyzerStatus' , commands . analyzerStatus ) ;
99
103
ctx . registerCommand ( 'memoryUsage' , commands . memoryUsage ) ;
100
104
ctx . registerCommand ( 'reloadWorkspace' , commands . reloadWorkspace ) ;
You can’t perform that action at this time.
0 commit comments