Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjun Sanji committed Oct 10, 2024
1 parent 938eec1 commit 7a0e66a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/watcher/reportWatcher.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from "vscode";
import { DebrickedCommands } from "../constants";
import { dependencyService, policyRuleService } from "../services";
import { errorHandler, globalStore } from "../helpers";
import { errorHandler, globalStore, Logger } from "../helpers";

export class ReportWatcher {
private watcher: vscode.FileSystemWatcher | null = null;
Expand All @@ -24,7 +24,7 @@ export class ReportWatcher {
});

this.watcher.onDidDelete(() => {
console.log("Report file deleted");
Logger.logInfo(`Report file deleted`);
});
context.subscriptions.push(this.watcher);
}
Expand Down
4 changes: 2 additions & 2 deletions src/watcher/workspaceWatcher.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from "vscode";
import { SupportedFilesToScan } from "../constants";
import { scanService } from "services";
import { errorHandler, globalStore, statusBarMessageHelper } from "../helpers";
import { errorHandler, globalStore, Logger, statusBarMessageHelper } from "../helpers";
import * as path from "path";

export class WorkSpaceWatcher {
Expand Down Expand Up @@ -30,7 +30,7 @@ export class WorkSpaceWatcher {
});

this.packageJsonWatcher.onDidDelete((uri) => {
console.log(`package.json deleted: ${uri.fsPath}`);
Logger.logInfo(`deleted: ${uri.fsPath}`);
});

this.context.subscriptions.push(this.packageJsonWatcher);
Expand Down

0 comments on commit 7a0e66a

Please sign in to comment.