Skip to content

Commit 9ef11b3

Browse files
committed
Fixed filepath
1 parent 774ee71 commit 9ef11b3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/deepcode/lib/analyzer/DeepCodeAnalyzer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ class DeepCodeAnalyzer implements DeepCode.AnalyzerInterface {
209209
);
210210
// Opening a project directory instead of a workspace leads to empty updatedFile.workspace field
211211
const workspace = updatedFile.workspace || Object.keys(this.analysisResultsCollection)[0];
212-
this.analysisResultsCollection[workspace].files[
213-
updatedFile.filePathInWorkspace
214-
] = { ...fileIssuesList };
212+
const filepath = updatedFile.filePathInWorkspace || updatedFile.fullPath.replace(workspace, "");
213+
this.analysisResultsCollection[workspace].files[filepath] = { ...fileIssuesList };
215214
if (this.deepcodeReview) {
216215
const issues = this.createIssuesList({
217216
fileIssuesList,

0 commit comments

Comments
 (0)