Skip to content

Commit 0d2b44c

Browse files
committed
Suppress database downloaded message when action canceled
1 parent b6bd534 commit 0d2b44c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Fix error with choosing qlpack search path.
66
- Add the AST Viewer to inspect the QL AST of a source file in a database. Currently, only available for C/C++ sources.
77
- Fix pagination when there are no results.
8+
- Suppress database downloaded from URL message when action canceled.
89

910
## 1.3.1 - 7 July 2020
1011

extensions/ql-vscode/src/databaseFetcher.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ export async function promptImportInternetDatabase(
5656
);
5757
commands.executeCommand('codeQLDatabases.focus');
5858
}
59-
showAndLogInformationMessage(
60-
'Database downloaded and imported successfully.'
61-
);
59+
if (item) {
60+
showAndLogInformationMessage(
61+
'Database downloaded and imported successfully.'
62+
);
63+
}
6264
} catch (e) {
6365
showAndLogErrorMessage(e.message);
6466
}

0 commit comments

Comments
 (0)