Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
[PCSUP-25325] - Fixed activation error log
Browse files Browse the repository at this point in the history
  • Loading branch information
ChananM committed Oct 13, 2024
1 parent f917251 commit 09aaede
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [1.0.22] - 2024-10-13

### Fixed

- Fixed an issue where an error log wasn't triggered on extension activation failure
- Fixed an issue where trailing slashes on Prisma URl configuration caused scan issues

## [1.0.21] - 2024-09-15

### Added
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repository": "https://github.com/bridgecrewio/prisma-cloud-vscode-plugin",
"icon": "static/icons/prisma.png",
"description": "a static code analysis tool to scan code for Infrastructure-as-Code (IaC) misconfigurations, Software Composition Analysis (SCA) issues and Secrets vulnerabilities.",
"version": "1.0.21",
"version": "1.0.22",
"engines": {
"vscode": "^1.79.0"
},
Expand All @@ -31,7 +31,9 @@
"prisma-cloud": [
{
"id": "general",
"name": "General Actions"
"name": "General Actions",
"visibility": "collapsed",
"initialSize": 1
},
{
"id": "iac-misconfiguration",
Expand Down
30 changes: 15 additions & 15 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import * as vscode from 'vscode';

import { registerCommands } from './commands';
import { CONFIG } from './config';
import { COMMAND } from './constants';
import { registerWindowEvents, registerWorkspaceEvents } from './events';
import logger, { initiateLogger } from './logger';
import { initializeServices } from './services';
import { initializeAnalyticsService } from './services/analyticsService';
import { initializeAuthenticationService } from './services/authenticationService';
import { CustomersModulesService, initializeCustomersModulesService } from './services/customersModulesService';
import { lineClickDisposable, registerCustomHighlight } from './services/customPopupService';
import { initializeInstallationId } from './utils';
import { registerCheckovResultView } from './views/interface/checkovResult';
import { registerSidebar } from './views/interface/primarySidebar';
import {registerCommands} from './commands';
import {CONFIG} from './config';
import {COMMAND} from './constants';
import {registerWindowEvents, registerWorkspaceEvents} from './events';
import logger, {initiateLogger} from './logger';
import {initializeServices} from './services';
import {initializeAnalyticsService} from './services/analyticsService';
import {initializeAuthenticationService} from './services/authenticationService';
import {CustomersModulesService, initializeCustomersModulesService} from './services/customersModulesService';
import {lineClickDisposable, registerCustomHighlight} from './services/customPopupService';
import {initializeInstallationId} from './utils';
import {registerCheckovResultView} from './views/interface/checkovResult';
import {registerSidebar} from './views/interface/primarySidebar';

export async function activate(context: vscode.ExtensionContext) {
try {
registerCommands(context);
initiateLogger(context.logUri.fsPath);
logger.info(`Initiating Prisma Cloud VS Code extension version ${vscode.extensions.getExtension(CONFIG.extensionId)?.packageJSON.version}`);
logger.info(`Plugin path: ${context.extensionPath}`);
Expand All @@ -24,7 +25,6 @@ export async function activate(context: vscode.ExtensionContext) {
await initializeAuthenticationService(context);
await initializeCustomersModulesService(context);
initializeAnalyticsService(context);
registerCommands(context);
initializeServices(context);
registerWindowEvents();
registerWorkspaceEvents();
Expand All @@ -33,7 +33,7 @@ export async function activate(context: vscode.ExtensionContext) {
registerCustomHighlight(context);
vscode.commands.executeCommand(COMMAND.CHECKOV_INSTALL, [context]);
} catch (e) {
logger.crit('Failed to initialize extension', e);
logger.error('Failed to initialize extension', e);
}
}

Expand Down

0 comments on commit 09aaede

Please sign in to comment.