-
Notifications
You must be signed in to change notification settings - Fork 510
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
Move indentation options from workspace settings to stylecop.json #2039
Move indentation options from workspace settings to stylecop.json #2039
Conversation
Current coverage is
|
public int TabSize => | ||
this.tabSize; | ||
|
||
public bool? IndentBlock => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Should we leave the last four settings here for SA1138 (#2034)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➡️ I went ahead and restricted this to the settings which are actually used currently.
deb1b95
to
ddfa852
Compare
|
||
var newSyntaxRoot = syntaxRoot.ReplaceTokens(tokenReplacements.Keys, (originalToken, rewrittenToken) => tokenReplacements[originalToken]); | ||
return document.WithSyntaxRoot(newSyntaxRoot); | ||
} | ||
|
||
private static Dictionary<SyntaxToken, SyntaxToken> GenerateBraceFixes(Document document, ImmutableArray<SyntaxToken> braceTokens) | ||
private static Dictionary<SyntaxToken, SyntaxToken> GenerateBraceFixes(Document document, IndentationSettings indentationSettings, ImmutableArray<SyntaxToken> braceTokens, CancellationToken cancellationToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Is the cancellationToken
parameter unnecessary, because it isn't used anywhere in the method.
👍 Looks good to me, but I am missing an updated |
ddfa852
to
fd7e631
Compare
@vweijsters I updated this to address your feedback. |
👍 With one minor remark on |
@vweijsters Fixed again. The behavior when |
20047ec
to
156835d
Compare
Move indentation options from workspace settings to stylecop.json
useTabs
istrue