We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 774ee71 commit 9ef11b3Copy full SHA for 9ef11b3
1 file changed
src/deepcode/lib/analyzer/DeepCodeAnalyzer.ts
@@ -209,9 +209,8 @@ class DeepCodeAnalyzer implements DeepCode.AnalyzerInterface {
209
);
210
// Opening a project directory instead of a workspace leads to empty updatedFile.workspace field
211
const workspace = updatedFile.workspace || Object.keys(this.analysisResultsCollection)[0];
212
- this.analysisResultsCollection[workspace].files[
213
- updatedFile.filePathInWorkspace
214
- ] = { ...fileIssuesList };
+ const filepath = updatedFile.filePathInWorkspace || updatedFile.fullPath.replace(workspace, "");
+ this.analysisResultsCollection[workspace].files[filepath] = { ...fileIssuesList };
215
if (this.deepcodeReview) {
216
const issues = this.createIssuesList({
217
fileIssuesList,
0 commit comments