Omnisharp-vscode: VS Code Doesn't honor "nowarn" in project.json for CS1591 disabling xmlDoc comments

Created on 8 Jul 2016  路  3Comments  路  Source: OmniSharp/omnisharp-vscode

Environment data

dotnet --info output:
.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64

VS Code version:
Version 1.2.1 (1.2.1)

C# Extension version:
1.2.1

Steps to reproduce

Set build options to:

"buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true,
    "warningsAsErrors": true,
    "nowarn": [
      "CS1591"
    ],
    "xmlDoc": true
  },

Expected behavior

public class and properties should not have a red squiggly.

Actual behavior

Red squiggly.
image

Bug Resolved-Fixed

Most helpful comment

It's very inconvenient to find real warnings and errors in the list of 1207 items:
2016-09-07 10 00 52

However this warnings are in ignore list in project.json:

"buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true,
    "xmlDoc": true,
    "nowarn": [ "CS1591", "CS1573" ]
}

All 3 comments

This issue reproduces in the latest OmniSharp. Any updates?

It's very inconvenient to find real warnings and errors in the list of 1207 items:
2016-09-07 10 00 52

However this warnings are in ignore list in project.json:

"buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true,
    "xmlDoc": true,
    "nowarn": [ "CS1591", "CS1573" ]
}

Has anyone figured out a workaround for this? I've also bumped into it and its really difficult to spot actual errors and warnings with so much in the way!

Was this page helpful?
0 / 5 - 0 ratings