You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copyright (c) 2015 ACME, Inc. All rights reserved worldwide.
#if !VS2012usingSystem;usingSystem.ComponentModel;usingSystem.Runtime.InteropServices;usingSystem.Windows;usingSystem.Windows.Forms.Integration;usingSystem.Windows.Controls;usingSystem.Windows.Input;usingSystem.Windows.Interop;
#if VS2008usingMicrosoft.Windows.Controls;
#elif VS2010usingSystem.Windows.Media;
#endif
usingForms=System.Windows.Forms;usingIWin32Window=System.Windows.Forms.IWin32Window;namespaceMicrosoft.VisualStudio.Shell{
#pragma warning disable SA1200// Using directives must be placed correctly// This is required to work around accessibility issues in documentation comments.usingNativeMethods=MyApplication.Namespace.NativeMethods;
#pragma warning restore SA1200// Using directives must be placed correctly}
#endif
Run an Organize using directives code fix for the SA1210 warning.
Expected result
📝 This bug report does not concern the blank lines which are removed from the result. Those are merely an accuracy issue, where I'm more concerned about the correctness issue.
// Copyright (c) 2015 ACME, Inc. All rights reserved worldwide.
#if !VS2012usingSystem;usingSystem.ComponentModel;usingSystem.Runtime.InteropServices;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Forms.Integration;usingSystem.Windows.Input;usingSystem.Windows.Interop;
#if VS2008usingMicrosoft.Windows.Controls;
#elif VS2010usingSystem.Windows.Media;
#endif
usingForms=System.Windows.Forms;usingIWin32Window=System.Windows.Forms.IWin32Window;namespaceMicrosoft.VisualStudio.Shell{
#pragma warning disable SA1200// Using directives must be placed correctly// This is required to work around accessibility issues in documentation comments.usingNativeMethods=MyApplication.Namespace.NativeMethods;
#pragma warning restore SA1200// Using directives must be placed correctly}
#endif
Actual result
// Copyright (c) 2015 ACME, Inc. All rights reserved worldwide.
#if !VS2012
#endif
#pragma warning disable SA1200// Using directives must be placed correctlyusingSystem;usingSystem.ComponentModel;usingSystem.Runtime.InteropServices;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Forms.Integration;usingSystem.Windows.Input;usingSystem.Windows.Interop;
#if VS2008usingMicrosoft.Windows.Controls;
#elif VS2010usingSystem.Windows.Media;usingForms=System.Windows.Forms;usingIWin32Window=System.Windows.Forms.IWin32Window;namespaceMicrosoft.VisualStudio.Shell{// This is required to work around accessibility issues in documentation comments.usingNativeMethods=MyApplication.Namespace.NativeMethods;
#pragma warning restore SA1200// Using directives must be placed correctly}
#endif
The text was updated successfully, but these errors were encountered:
Sample code
Configuration
Operation
Run an Organize using directives code fix for the SA1210 warning.
Expected result
📝 This bug report does not concern the blank lines which are removed from the result. Those are merely an accuracy issue, where I'm more concerned about the correctness issue.
Actual result
The text was updated successfully, but these errors were encountered: