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

Merge main to main-vs-deps #54341

Merged
73 commits merged into from
Jun 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
389e2c6
Add formatting options
CyrusNajmabadi Jun 8, 2021
7af44bd
Update codestyle version
CyrusNajmabadi Jun 8, 2021
1f16b54
Update version
CyrusNajmabadi Jun 8, 2021
12c50f1
enable
CyrusNajmabadi Jun 8, 2021
55d574c
keep together
CyrusNajmabadi Jun 8, 2021
24b767f
Fix warning
CyrusNajmabadi Jun 8, 2021
f9ee811
Formatting style
CyrusNajmabadi Jun 8, 2021
f7bc386
Formatting style
CyrusNajmabadi Jun 8, 2021
b54d353
Formatting style
CyrusNajmabadi Jun 8, 2021
0871724
Formatting style
CyrusNajmabadi Jun 8, 2021
fab2b18
Formatting style
CyrusNajmabadi Jun 9, 2021
3c0e0df
Formatting style
CyrusNajmabadi Jun 9, 2021
f0bbb6d
Formatting style
CyrusNajmabadi Jun 9, 2021
1926aa6
Formatting style
CyrusNajmabadi Jun 9, 2021
fcc6fc5
Formatting style
CyrusNajmabadi Jun 9, 2021
5faf273
Formatting style
CyrusNajmabadi Jun 9, 2021
b8eec9f
Formatting style
CyrusNajmabadi Jun 9, 2021
a8f54ec
Formatting style
CyrusNajmabadi Jun 9, 2021
bf9f07a
Formatting style
CyrusNajmabadi Jun 9, 2021
0ac098b
Revert
CyrusNajmabadi Jun 9, 2021
66d4364
Disable
CyrusNajmabadi Jun 9, 2021
e4d8687
Place colon consistently
CyrusNajmabadi Jun 9, 2021
33b91b3
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
641e51d
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
29528f9
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
8a85310
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
8f39de6
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
3db709e
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
33bdc7a
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
859f807
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
765c81a
Revert
CyrusNajmabadi Jun 9, 2021
cb17d6c
Disable
CyrusNajmabadi Jun 9, 2021
f1c7263
Disable
CyrusNajmabadi Jun 9, 2021
d311889
Disable
CyrusNajmabadi Jun 9, 2021
84ebe2f
Disable
CyrusNajmabadi Jun 9, 2021
9495664
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
db31362
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
9136551
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
3ddf593
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
bc21c49
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
73dcb0c
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
89e89b7
Fix IDE0059: Unnecessary assignment
CyrusNajmabadi Jun 9, 2021
52d5d29
Update .editorconfig
CyrusNajmabadi Jun 9, 2021
75f9687
Update .editorconfig
CyrusNajmabadi Jun 9, 2021
c5c3d13
Merge remote-tracking branch 'upstream/main' into formattingOptions
CyrusNajmabadi Jun 15, 2021
a02b31a
move options
CyrusNajmabadi Jun 15, 2021
8b02237
Only run on IDE code
CyrusNajmabadi Jun 15, 2021
b7e1dc2
Enable option
CyrusNajmabadi Jun 15, 2021
1bf187c
Enable new option
CyrusNajmabadi Jun 15, 2021
4a23ad6
editor config file
CyrusNajmabadi Jun 15, 2021
298ed61
Merge remote-tracking branch 'upstream/main' into formattingOptions2
CyrusNajmabadi Jun 15, 2021
81a2a76
Use TimeSpan to represent delay times
sharwell Jun 16, 2021
be0e071
Use IExpeditableDelaySource instead of Task.Delay
sharwell Jun 16, 2021
cd5c67b
LSIF support for hover
mavasani Jun 21, 2021
866d784
Merge remote-tracking branch 'upstream/main' into formattingOptions2
CyrusNajmabadi Jun 21, 2021
af80425
Only for c#
CyrusNajmabadi Jun 21, 2021
64ff6e7
Fix file
CyrusNajmabadi Jun 21, 2021
5076f47
Address feedback
mavasani Jun 22, 2021
a0ff699
Add an option to disable the skip analyzers feature for implicitly tr…
mavasani Jun 22, 2021
fdc3fbc
Convert ImplementInterfaceTests_FixAllTests to the new test library
sharwell Jun 22, 2021
fda7249
Convert ImplementInterfaceTests to the new test library
sharwell Jun 22, 2021
23fc558
Simplify tests
sharwell Jun 22, 2021
78951ad
AutomationObject support
mavasani Jun 23, 2021
d241374
Fix tests - use localized strings in expected hover contents and use …
mavasani Jun 23, 2021
82654d8
Merge pull request #54316 from mavasani/AddOption
mavasani Jun 23, 2021
d3e915d
Merge pull request #54249 from mavasani/LsifHover
mavasani Jun 23, 2021
51c367a
Merge pull request #54310 from sharwell/implement-interface-tests
sharwell Jun 23, 2021
efdc8ed
remove dependency that codemodel has on option value that never changes.
CyrusNajmabadi Jun 23, 2021
ee3e71c
Merge pull request #54152 from sharwell/timespan-delay
sharwell Jun 23, 2021
32bce68
Merge pull request #54332 from CyrusNajmabadi/codeModelOptionDeadLock
CyrusNajmabadi Jun 23, 2021
56ecda0
Block deployment to Dev17 (#54265)
tmat Jun 23, 2021
834f405
Merge pull request #54115 from CyrusNajmabadi/formattingOptions2
CyrusNajmabadi Jun 23, 2021
6eb2f75
Merge branch 'main-vs-deps' into merges/main-to-main-vs-deps
tmat Jun 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ dotnet_style_explicit_tuple_names = true:suggestion

# Whitespace options
dotnet_style_allow_multiple_blank_lines_experimental = false
dotnet_style_allow_statement_immediately_after_block_experimental = true

# Non-private static fields are PascalCase
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion
Expand Down Expand Up @@ -242,6 +241,10 @@ csharp_prefer_braces = true:silent
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

# Currently only enabled for C# due to crash in VB analyzer. VB can be enabled once
# https://github.com/dotnet/roslyn/pull/54259 has been published.
dotnet_style_allow_statement_immediately_after_block_experimental = false

[src/CodeStyle/**.{cs,vb}]
# warning RS0005: Do not use generic CodeAction.Create to create CodeAction
dotnet_diagnostic.RS0005.severity = none
Expand Down Expand Up @@ -291,7 +294,7 @@ dotnet_diagnostic.IDE2001.severity = warning
dotnet_diagnostic.IDE2002.severity = warning

# dotnet_style_allow_statement_immediately_after_block_experimental
dotnet_diagnostic.IDE2003.severity = none
dotnet_diagnostic.IDE2003.severity = warning

# csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental
dotnet_diagnostic.IDE2004.severity = warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ private void ProcessMemberDeclaration(
return;
}
}

break;

case SyntaxKind.ClassDeclaration:
Expand All @@ -125,6 +126,7 @@ private void ProcessMemberDeclaration(
return;
}
}

break;

default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ private void AnalyzeInvocation(
{
return;
}

context.ReportDiagnostic(CreateDiagnostic(resultOpt.Value));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ protected override Task FixAllAsync(
SyntaxFactory.TypePattern(((DeclarationPatternSyntax)current).Type)
.WithAdditionalAnnotations(Formatter.Annotation));
}

break;
case RecursivePatternSyntax recursivePattern:
editor.ReplaceNode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ private static SyntaxTriviaList Expand(List<StatementSyntax> result, UsingStatem
result.Add(anythingElse);
return default;
}

return default;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessaryByVal
Function(ct) FixAsync(context.Document, diagnostic, ct)),
diagnostic)
Next

Return Task.CompletedTask
End Function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.SimplifyObjectCreation
Function(ct) FixAsync(context.Document, diagnostic, ct)),
diagnostic)
Next

Return Task.CompletedTask
End Function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ private static bool MoveCaretToSemicolonPosition(
{
return MoveCaretToFinalPositionInStatement(speculative, currentNode, args, originalCaret, caret, true);
}

return false;
}
else if (syntaxFacts.IsStatement(currentNode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public PEFile Resolve(IAssemblyReference name)
{
Log(CSharpEditorResources.WARN_Version_mismatch_Expected_0_Got_1, name.Version, assemblies[0].Identity.Version);
}

return MakePEFile(assemblies[0]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ private void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans)
if (!child.AsNode().IsReturnableConstruct())
HighlightRelatedKeywords(child.AsNode(), spans);
}

break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ private void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans)
HighlightRelatedKeywords(child.AsNode(), spans);
}
}

break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9576,6 +9576,7 @@ void goo()
{
await VerifyItemExistsAsync(markup, "Item" + i);
}

await VerifyItemExistsAsync(markup, "ToString");

await VerifyItemIsAbsentAsync(markup, "Item1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2522,6 +2522,7 @@ public Test(string s, Base b, int i, params object[] list) : this(d : [||]b, s :
var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters());
Assert.Equal(2, actions.Length);
}

var expect_0 =
@"
class Program
Expand Down Expand Up @@ -2671,6 +2672,7 @@ void M()
var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters());
Assert.Equal(2, actions.Length);
}

var expect_0 =
@"
class Program
Expand Down Expand Up @@ -2746,6 +2748,7 @@ void M()
var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters());
Assert.Equal(3, actions.Length);
}

var expect_0 =
@"
class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@ public void AnalyzeNode(SyntaxNodeAnalysisContext context)
{
context.ReportDiagnostic(Diagnostic.Create(Descriptor, trivia.GetLocation()));
}

break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.ImplementInterface
{
public partial class ImplementExplicitlyTests : AbstractCSharpCodeActionTest
public class ImplementExplicitlyTests : AbstractCSharpCodeActionTest
{
private const int SingleMember = 0;
private const int SameInterface = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.ImplementInterface
{
public partial class ImplementImplicitlyTests : AbstractCSharpCodeActionTest
public class ImplementImplicitlyTests : AbstractCSharpCodeActionTest
{
private const int SingleMember = 0;
private const int SameInterface = 1;
Expand Down
Loading