File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
468468function 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}
You can’t perform that action at this time.
0 commit comments