Skip to content

Commit 25c1f96

Browse files
Merge pull request #36 from runtimeverification/raoul/fix-github-login-prompt
Auto prompt users for GitHub credentials
2 parents 2d0d45b + a3e4ef0 commit 25c1f96

File tree

4 files changed

+33
-29
lines changed

4 files changed

+33
-29
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the "Simbolik VSCode" extension will be documented in this file.
44

5+
## [6.0.2] - 2025-03-03
6+
7+
- Automatically prompts users without API keys to authenticate via GitHub
8+
59
## [6.0.1] - 2025-02-20
610

711
- Fixed several spelling and grammar issues in the README file.

package-lock.json

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"publisher": "runtimeverification",
1313
"description": "Advanced Solidity and EVM Debugger",
14-
"version": "6.0.1",
14+
"version": "6.0.2",
1515
"engines": {
1616
"vscode": "^1.79.0"
1717
},

src/startDebugging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export async function startDebugging(
2727
location: vscode.ProgressLocation.Notification,
2828
title: "Simbolik"
2929
}, async (progress) => {
30-
const apiKey = getConfigValue('api-key', '')
30+
const apiKey = getConfigValue<string>('api-key', 'valid-api-key')
3131

3232
let credentials: Credentials;
33-
if (apiKey) {
33+
if (apiKey !== 'valid-api-key' && apiKey !== '') {
3434
credentials = { provider: 'simbolik', token: apiKey };
3535
} else {
3636
const session = await vscode.authentication.getSession('github', ['user:email'], {

0 commit comments

Comments
 (0)