-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode | Fix UI Freezing and Unclickable Icons (AST-70028) #1006
VSCode | Fix UI Freezing and Unclickable Icons (AST-70028) #1006
Conversation
New Issues
Fixed Issues
|
src/cx/cx.ts
Outdated
@@ -253,7 +253,9 @@ export class Cx implements CxPlatform { | |||
try { | |||
enabled = await cx.ideScansEnabled(); | |||
} catch (error) { | |||
logs.error(error); | |||
const errMsg = `Error checking tenant configuration: ${error}`; | |||
vscode.window.showErrorMessage("Provided Checkmarx One API KEY is invalid"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't it be that we get another issue? (it can be even network issue...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I need to talk about it with Daniel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have an error code the indicate the reason for the error?
if yes we can use it
src/cx/cx.ts
Outdated
return false; | ||
} | ||
} catch (error) { | ||
logs.error(`${invalidAPIKeyMsg}: ${error}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we got exit code != 0, it means that apikey is invalid
but if we catch an exception it means other issue happened, could be not related to apikey itself
no?
src/cx/cx.ts
Outdated
} | ||
} catch (error) { | ||
logs.error(`${invalidAPIKeyMsg}: ${error}`); | ||
vscode.window.showErrorMessage(invalidAPIKeyMsg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
References
Testing
Checklist