Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I allow a semicolon in the File header? (possible bug) #51573

Closed
WilliamAntonRohm opened this issue Mar 1, 2021 · 3 comments
Closed
Labels
Resolution-Duplicate The described behavior is tracked in another issue

Comments

@WilliamAntonRohm
Copy link

WilliamAntonRohm commented Mar 1, 2021

(copied from MicrosoftDocs/visualstudio-docs/issues/6386, relating to Add file header)

With this:

.editorconfig:

; Top-most EditorConfig file
root = true
[*.cs]
file_header_template = a;b;c

Add -> Class, will generate:

// a

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NLog
{
    class Class1
    {
    }
}

I expected // a;b;c and not // a

It this a bug as the specs say it should not be interpreted as comment.

Comment: starts with a ; or a #.

Inserting a # or ; after non-whitespace characters in a line (i.e., inline) shall neither be parsed as a comment nor as part of the section name, pair (defined below) key or value in which it was inserted. This may change in the future; thus, is not recommended.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Mar 1, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@WilliamAntonRohm
Copy link
Author

Source issue labels:

  • visual-studio-windows/prod
  • vs-ide-general/tech

@sharwell
Copy link
Member

sharwell commented Mar 2, 2021

Duplicate of #44596

@sharwell sharwell marked this as a duplicate of #44596 Mar 2, 2021
@sharwell sharwell closed this as completed Mar 2, 2021
@sharwell sharwell added Resolution-Duplicate The described behavior is tracked in another issue and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

2 participants