From 7b53021b29bb6937e69346aba888d239564ad20e Mon Sep 17 00:00:00 2001 From: David Barbet Date: Mon, 11 Sep 2023 18:14:21 -0700 Subject: [PATCH] Pass ForceNoAlign to ensure msbuild output is parseable by the vscode problem matcher --- omnisharptest/omnisharpFeatureTests/assets.test.ts | 4 ++-- src/shared/assets.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/omnisharptest/omnisharpFeatureTests/assets.test.ts b/omnisharptest/omnisharpFeatureTests/assets.test.ts index 5c44e8012..84121077a 100644 --- a/omnisharptest/omnisharpFeatureTests/assets.test.ts +++ b/omnisharptest/omnisharpFeatureTests/assets.test.ts @@ -78,7 +78,7 @@ suite('Asset generation: csproj', () => { // We do not check the watch task since this parameter can break hot reload scenarios. tasksJson.tasks .filter((task) => task.label !== 'watch') - .forEach((task) => task.args!.should.contain('/consoleloggerparameters:NoSummary')); + .forEach((task) => task.args!.should.contain('/consoleloggerparameters:NoSummary;ForceNoAlign')); }); test("Generated 'watch' task does not have the property GenerateFullPaths set to true ", () => { @@ -111,7 +111,7 @@ suite('Asset generation: csproj', () => { const watchTask = tasksJson.tasks!.find((task) => task.label === 'watch'); isNotNull(watchTask?.args); - watchTask.args.should.not.contain('/consoleloggerparameters:NoSummary'); + watchTask.args.should.not.contain('/consoleloggerparameters:NoSummary;ForceNoAlign'); }); test('Create tasks.json for nested project opened in workspace', () => { diff --git a/src/shared/assets.ts b/src/shared/assets.ts index 098c88b47..41a7db31d 100644 --- a/src/shared/assets.ts +++ b/src/shared/assets.ts @@ -293,7 +293,7 @@ export class AssetGenerator { } commandArgs.push('/property:GenerateFullPaths=true'); - commandArgs.push('/consoleloggerparameters:NoSummary'); + commandArgs.push('/consoleloggerparameters:NoSummary;ForceNoAlign'); } private getBuildProjectPath(): string | null {