message: Update default launch  configurations for Blazor WASM apps
diff: @@ -197,21 +197,17 @@ export class AssetGenerator {
  ]`;
  }
  case ProgramLaunchType.BlazorWebAssemblyHosted: {
  - const chromeLaunchConfigurationsMassaged: string = indentJsonString(createBlazorWebAssemblyLaunchConfiguration(this.computeWorkingDirectory()));
  - const hostedLaunchConfigurationsMassaged: string = indentJsonString(createBlazorWebAssemblyHostedLaunchConfiguration(this.computeProgramPath(), this.computeWorkingDirectory()));
  + const hostedLaunchConfigMassaged: string = indentJsonString(createBlazorWebAssemblyHostedLaunchConfiguration(this.computeProgramPath(), this.computeWorkingDirectory()));
  return `
  [
  - ${hostedLaunchConfigurationsMassaged},
  - ${chromeLaunchConfigurationsMassaged}
  + ${hostedLaunchConfigMassaged}
  ]`;
  }
  case ProgramLaunchType.BlazorWebAssemblyStandalone: {
  - const chromeLaunchConfigurationsMassaged: string = indentJsonString(createBlazorWebAssemblyLaunchConfiguration(this.computeWorkingDirectory()));
  - const devServerLaunchConfigurationMassaged: string = indentJsonString(createBlazorWebAssemblyDevServerLaunchConfiguration(this.computeWorkingDirectory()));
  + const standaloneLaunchConfigMassaged: string = indentJsonString(createBlazorWebAssemblyStandaloneLaunchConfiguration());
  return `
  [
  - ${devServerLaunchConfigurationMassaged},
  - ${chromeLaunchConfigurationsMassaged}
  + ${standaloneLaunchConfigMassaged}
  ]`;
  }
  }
  @@ -318,47 +314,22 @@ export function createWebLaunchConfiguration(programPath: string, workingDirecto
  export function createBlazorWebAssemblyHostedLaunchConfiguration(programPath: string, workingDirectory: string): string {
  return `
  {
  - "name": ".NET Core Launch (Blazor Hosted)",
  - "type": "coreclr",
  + "name": "Launch and Debug Hosted Blazor WebAssembly App",
  + "type": "blazorwasm",
  "request": "launch",
  + "hosted": true,
  // If you have changed target frameworks, make sure to update the program path.
  "program": "${util.convertNativePathToPosix(programPath)}",
  - "args": [],
  - "cwd": "${util.convertNativePathToPosix(workingDirectory)}",
  - "stopAtEntry": false,
  - "env": {
  - "ASPNETCORE_ENVIRONMENT": "Development"
  - },
  - "preLaunchTask": "build"
  + "cwd": "${util.convertNativePathToPosix(workingDirectory)}"
  }`;
  }
  -export function createBlazorWebAssemblyLaunchConfiguration(workingDirectory: string): string {
  +export function createBlazorWebAssemblyStandaloneLaunchConfiguration(): string {
  return `
  {
  - "name": ".NET Core Debug Blazor Web Assembly in Chrome",
  - "type": "pwa-chrome",
  - "request": "launch",
  - "timeout": 30000,
  - // If you have changed the default port / launch URL make sure to update the expectation below
  - "url": "https://localhost:5001",
  - "webRoot": "${util.convertNativePathToPosix(workingDirectory)}",
  - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
  -}`;
  -}
  -
  -export function createBlazorWebAssemblyDevServerLaunchConfiguration(workingDirectory: string): string {
  - return `
  -{
  - "name": ".NET Core Launch (Blazor Standalone)",
  - "type": "coreclr",
  - "request": "launch",
  - "program": "dotnet",
  - "args": ["run"],
  - "cwd": "${util.convertNativePathToPosix(workingDirectory)}",
  - "env": {
  - "ASPNETCORE_ENVIRONMENT": "Development"
  - }
  + "name": "Launch and Debug Standalone Blazor WebAssembly App",
  + "type": "blazorwasm",
  + "request": "launch"
  }`;
  }
  