Skip to content

Commit ee076e2

Browse files
updated changes
1 parent 0b31d8a commit ee076e2

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/ci-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Authenticate with GitHub package registry
2020
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
2121
- name: Install dependencies
22+
run : npm cache clean --force
2223
run: npm install
2324
- name: Run e2e tests
2425
if: runner.os == 'Linux'
@@ -59,6 +60,7 @@ jobs:
5960
- name: Authenticate with GitHub package registry
6061
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
6162
- name: Install dependencies
63+
run : npm cache clean --force
6264
run: npm install
6365
- name: Run unit tests with coverage
6466
run: npm run unit-coverage
@@ -79,6 +81,7 @@ jobs:
7981
- name: Authenticate with GitHub package registry
8082
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
8183
- name: Install dependencies
84+
run : npm cache clean --force
8285
run: npm install
8386
- name: Run tests
8487
if: runner.os != 'Linux'

src/views/scaView/scaResultsProvider.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { messages } from "../../utils/common/messages";
1010
import { orderResults } from "../../utils/utils";
1111
import { ResultsProvider } from "../resultsProviders";
1212
import CxScaRealTimeErrors from "@checkmarxdev/ast-cli-javascript-wrapper/dist/main/scaRealtime/CxScaRealTimeErrors";
13+
import { cx } from "../../cx";
1314

1415
export class SCAResultsProvider extends ResultsProvider {
1516
public process;
@@ -40,11 +41,17 @@ export class SCAResultsProvider extends ResultsProvider {
4041
}
4142

4243
async refreshData(message?: string): Promise<void> {
43-
this.showStatusBarItem(constants.scaScanRunningLog);
44-
this.message = message ? message : messages.scaStartScan;
45-
this.data = this.generateTree().children;
46-
this._onDidChangeTreeData.fire(undefined);
47-
this.hideStatusBarItem();
44+
if (!await cx.isStandaloneEnabled(this.logs)) {
45+
this.showStatusBarItem(constants.scaScanRunningLog);
46+
this.message = message ? message : messages.scaStartScan;
47+
this.data = this.generateTree().children;
48+
this._onDidChangeTreeData.fire(undefined);
49+
this.hideStatusBarItem();
50+
}
51+
else {
52+
this.data = [];
53+
this._onDidChangeTreeData.fire(undefined);
54+
}
4855
}
4956

5057

0 commit comments

Comments
 (0)