Skip to content

Commit 108edfe

Browse files
committed
Improve import notifications
1 parent a7bbe8f commit 108edfe

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/webviews/import-tool-results/importToolResultsWebview.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,16 @@ function processToolFile(
147147
}
148148

149149
if (!toolFindings.length) {
150-
vscode.window.showErrorMessage('An error has ocurred while parsing the file.');
150+
vscode.window.showErrorMessage(
151+
'[Import] An error has ocurred while parsing the file.',
152+
);
151153
return;
152154
}
153155

154156
if (noteMap.size && identifyPotentialDuplicates(toolName, noteMap)) {
155157
vscode.window
156158
.showWarningMessage(
157-
`Potential duplicates. Current comments already include findings from ${toolName}. Do you want to import findings anyway?`,
159+
`[Import] Potential duplicates. Current comments already include findings from ${toolName}. Do you want to import findings anyway?`,
158160
'Yes',
159161
'No',
160162
)
@@ -194,6 +196,6 @@ function saveToolFindings(
194196
saveNoteComment(newThread, toolFinding.text, true, noteMap, toolName, remoteDb);
195197
});
196198
vscode.window.showInformationMessage(
197-
`${toolFindings.length} findings were imported successfully.`,
199+
`[Import] ${toolFindings.length} findings were imported successfully.`,
198200
);
199201
}

0 commit comments

Comments
 (0)