Skip to content

Commit 8a0347e

Browse files
Code review feedback
1 parent 43fac9b commit 8a0347e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/assets.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export function addAssetsIfNecessary(server: OmnisharpServer): Promise<AddAssetR
430430
});
431431
}
432432

433-
function doAssetsExists(paths: Paths) {
433+
function doesAnyAssetExist(paths: Paths) {
434434
return new Promise<boolean>((resolve, reject) => {
435435
fs.existsAsync(paths.launchJsonPath).then(res => {
436436
if (res) {
@@ -467,7 +467,7 @@ function deleteAssets(paths: Paths) {
467467

468468
function shouldGenerateAssets(paths: Paths) {
469469
return new Promise<boolean>((resolve, reject) => {
470-
doAssetsExists(paths).then(res => {
470+
doesAnyAssetExist(paths).then(res => {
471471
if (res) {
472472
const yesItem = { title: 'Yes' };
473473
const cancelItem = { title: 'Cancel', isCloseAffordance: true };
@@ -509,5 +509,8 @@ export function generateAssets(server: OmnisharpServer) {
509509
}
510510
});
511511
}
512+
else {
513+
vscode.window.showErrorMessage("Could not locate .NET Core project. Assets were not generated.");
514+
}
512515
});
513516
}

0 commit comments

Comments
 (0)