提交 ccb00ed5 编写于 作者: J Jason Malinowski

Fix formatting issues being flagged by the analyzer

上级 e65f0cb2
......@@ -1244,7 +1244,7 @@ class $$TestClass
[WpfFact, Trait(Traits.Feature, Traits.Features.ExtractInterface)]
public async Task TestExtractInterface_WithCopyright1()
{
var markup =
var markup =
@"// Copyright
public class $$Goo
......@@ -1273,9 +1273,9 @@ public interface IGoo
}";
await TestExtractInterfaceCommandCSharpAsync(
markup,
expectedSuccess: true,
expectedUpdatedOriginalDocumentCode: updatedMarkup,
markup,
expectedSuccess: true,
expectedUpdatedOriginalDocumentCode: updatedMarkup,
expectedInterfaceCode: expectedInterfaceCode);
}
......
......@@ -27,7 +27,7 @@ public override string Title
get
{
var text = _includeOverridesAndImplementations
? FeaturesResources.Generate_parameter_0_and_overrides_implementations
? FeaturesResources.Generate_parameter_0_and_overrides_implementations
: FeaturesResources.Generate_parameter_0;
return string.Format(
......
......@@ -244,7 +244,7 @@ public void RuleSet_ProjectNoWarnOverridesOtherSettings()
[WorkItem(33505, "https://github.com/dotnet/roslyn/pull/33505")]
public void RuleSet_FileChangingOnDiskRefreshes(bool useCpsProject)
{
string ruleSetSource =
string ruleSetSource =
@"<?xml version=""1.0"" encoding=""utf-8""?>
<RuleSet Name=""Ruleset1"" Description=""Test"" ToolsVersion=""12.0"">
<IncludeAll Action=""Error"" />
......
......@@ -9,7 +9,6 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem;
using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.Extensions;
using Microsoft.VisualStudio.LanguageServices.Implementation.Venus;
using Microsoft.VisualStudio.Shell;
......
......@@ -118,7 +118,7 @@ internal void Generate_Save_EditorConfig(object sender, System.Windows.RoutedEve
FileName = ".editorconfig",
Title = ServicesVSResources.Save_dot_editorconfig_file,
InitialDirectory = GetInitialDirectory()
})
})
{
if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
......
......@@ -174,7 +174,7 @@ private static Checksum GetMetadataChecksumSlow(Solution solution, PortableExecu
// version ever changes, all persisted data won't match the current checksum
// we expect, and we'll recompute things.
return Checksum.Create(
WellKnownSynchronizationKind.SymbolTreeInfo,
WellKnownSynchronizationKind.SymbolTreeInfo,
new[] { checksum, SerializationFormatChecksum });
});
}
......
......@@ -13,7 +13,7 @@ internal sealed class RemoteExperimentationService : IExperimentationService
public bool IsExperimentEnabled(string experimentName)
{
var assetSource = AssetStorage.Default.AssetSource;
return assetSource?.IsExperimentEnabledAsync(experimentName, CancellationToken.None).Result ?? false;
return assetSource?.IsExperimentEnabledAsync(experimentName, CancellationToken.None).Result ?? false;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册