Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Feb 28, 2025
1 parent 27b03b7 commit 00c7592
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/panel-providers/diagnostics-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ class AderynDiagnosticsProvider implements vscode.TreeDataProvider<DiagnosticIte
const logger = new Logger();
const aderynIsOnPath = await isAderynAvailableOnPath(logger);
if (aderynIsOnPath) {
logger.info("[Sidebar]: aderyn is on path");
const workspaceRoot =
ensureWorkspacePreconditionsMetAndReturnProjectURI(false);
if (!workspaceRoot) {
return Promise.reject('workspace pre-conditions unmet');
}
logger.info(`[Sidebar]: Workspace root found ${workspaceRoot}`);
this.projectRootUri = await this.getProjectRootPrefixFromAderynToml(
findProjectRoot(workspaceRoot),
);

logger.info(`[Sidebar]: Workspace root found ${workspaceRoot}`);
return await createAderynReportAndDeserialize(this.projectRootUri).catch(
(err) => {
logger.err(err);
Expand Down

0 comments on commit 00c7592

Please sign in to comment.