diff options
author | Matthias Einwag <[email protected]> | 2020-09-23 08:50:34 +0100 |
---|---|---|
committer | Matthias Einwag <[email protected]> | 2020-09-23 08:50:34 +0100 |
commit | 501b516db4a9a50c39e2fb90b389d77c9541e43f (patch) | |
tree | d1c654d9ec3da9d8428f157a0d8e7c98190fbebf /editors/code/src | |
parent | a0a7cd306ef6d9476b37b85365418f84c374ae59 (diff) |
Add a command for updating the Github API token
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/main.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 409e4b5c2..2fcd853d4 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -95,6 +95,10 @@ async function tryActivate(context: vscode.ExtensionContext) { | |||
95 | await activate(context).catch(log.error); | 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 | ctx.registerCommand('analyzerStatus', commands.analyzerStatus); | 102 | ctx.registerCommand('analyzerStatus', commands.analyzerStatus); |
99 | ctx.registerCommand('memoryUsage', commands.memoryUsage); | 103 | ctx.registerCommand('memoryUsage', commands.memoryUsage); |
100 | ctx.registerCommand('reloadWorkspace', commands.reloadWorkspace); | 104 | ctx.registerCommand('reloadWorkspace', commands.reloadWorkspace); |