File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
java/com/checkmarx/intellij Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -153,5 +153,6 @@ public enum Resource {
153153 STARTING_CHECKMARX_OSS_SCAN ,
154154 FAILED_OSS_SCAN_INITIALIZATION ,
155155 DEV_ASSIST_COPY_FIX_PROMPT ,
156- DEV_ASSIST_COPY_VIEW_DETAILS_PROMPT
156+ DEV_ASSIST_COPY_VIEW_DETAILS_PROMPT ,
157+ ASCA_LOGIN_REQUIRED
157158}
Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ public void reset() {
182182 logoutButton .setEnabled (true );
183183 logoutButton .requestFocusInWindow ();
184184 }
185- ascaInstallationMsg .setVisible (false );
186185 SwingUtilities .invokeLater (() -> {
187186 if (useApiKey ) {
188187 apiKeyField .requestFocusInWindow ();
@@ -309,6 +308,9 @@ private void onAuthSuccessApiKey() {
309308
310309 // Complete post-authentication setup
311310 completeAuthenticationSetup (String .valueOf (apiKeyField .getPassword ()));
311+ if (ascaCheckBox .isSelected ()) {
312+ runAscaScanInBackground ();
313+ }
312314 }
313315
314316 /**
@@ -537,6 +539,12 @@ private void addAscaCheckBoxListener() {
537539 }
538540
539541 private void runAscaScanInBackground () {
542+ if (!SETTINGS_STATE .isAuthenticated ()) {
543+ ascaInstallationMsg .setVisible (true );
544+ setAscaInstallationMsg (Bundle .message (Resource .ASCA_LOGIN_REQUIRED ), JBColor .RED );
545+ return ;
546+ }
547+
540548 new SwingWorker <Void , Void >() {
541549 @ Override
542550 protected Void doInBackground () {
Original file line number Diff line number Diff line change @@ -147,4 +147,5 @@ CHECKING_MCP_STATUS=Checking MCP status...
147147STARTING_CHECKMARX_OSS_SCAN=Checkmarx is scanning your code...
148148FAILED_OSS_SCAN_INITIALIZATION=Failed to initialize Checkmarx OSS scan. Please connect to the internet.
149149DEV_ASSIST_COPY_FIX_PROMPT=Fix prompt copied to clipboard! Paste the prompt into Copilot chat (Agent Mode).
150- DEV_ASSIST_COPY_VIEW_DETAILS_PROMPT=Prompt asking AI to provide more details was copied to your clipboard! Paste the prompt into Copilot chat.
150+ DEV_ASSIST_COPY_VIEW_DETAILS_PROMPT=Prompt asking AI to provide more details was copied to your clipboard! Paste the prompt into Copilot chat.
151+ ASCA_LOGIN_REQUIRED=Failed to run ASCA scan: Authentication required
You can’t perform that action at this time.
0 commit comments