Skip to content

Commit c2f47ad

Browse files
authored
Merge pull request #6340 from dibarbet/forcenoalign
Pass ForceNoAlign to ensure msbuild output is parseable by the vscode problem matcher
2 parents 67691f8 + 7b53021 commit c2f47ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

omnisharptest/omnisharpFeatureTests/assets.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ suite('Asset generation: csproj', () => {
7878
// We do not check the watch task since this parameter can break hot reload scenarios.
7979
tasksJson.tasks
8080
.filter((task) => task.label !== 'watch')
81-
.forEach((task) => task.args!.should.contain('/consoleloggerparameters:NoSummary'));
81+
.forEach((task) => task.args!.should.contain('/consoleloggerparameters:NoSummary;ForceNoAlign'));
8282
});
8383

8484
test("Generated 'watch' task does not have the property GenerateFullPaths set to true ", () => {
@@ -111,7 +111,7 @@ suite('Asset generation: csproj', () => {
111111

112112
const watchTask = tasksJson.tasks!.find((task) => task.label === 'watch');
113113
isNotNull(watchTask?.args);
114-
watchTask.args.should.not.contain('/consoleloggerparameters:NoSummary');
114+
watchTask.args.should.not.contain('/consoleloggerparameters:NoSummary;ForceNoAlign');
115115
});
116116

117117
test('Create tasks.json for nested project opened in workspace', () => {

src/shared/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class AssetGenerator {
293293
}
294294

295295
commandArgs.push('/property:GenerateFullPaths=true');
296-
commandArgs.push('/consoleloggerparameters:NoSummary');
296+
commandArgs.push('/consoleloggerparameters:NoSummary;ForceNoAlign');
297297
}
298298

299299
private getBuildProjectPath(): string | null {

0 commit comments

Comments
 (0)