Skip to content

Commit

Permalink
Remove ASPNETCORE_ENV variable from setting
Browse files Browse the repository at this point in the history
  • Loading branch information
captainsafia committed May 14, 2020
1 parent 146d0dd commit 32dc01d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ export class BlazorDebugConfigurationProvider implements vscode.DebugConfigurati
const shellArgs = process.platform === 'win32' ? ['/c', 'chcp 65001 >NUL & dotnet run'] : ['run'];
const spawnOptions = {
cwd: configuration.cwd || (folder && folder.uri && folder.uri.fsPath),
env: {
...process.env,
ASPNETCORE_ENVIRONMENT: 'Development',
},
/**
* The VSCode Terminal API expects a the values of the
* env object to be `string | null` which conflicts with
* the type Node sets on the `process.env` property so
* some type coercion is required here.
*/
env: process.env as {[key: string]: string | null},
};

const output = this.vscodeType.window.createTerminal({
Expand Down

0 comments on commit 32dc01d

Please sign in to comment.