diff --git a/.gitignore b/.gitignore index d8c2d5b16..6e7bf44a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.vs/ bin/ obj/ module/ diff --git a/src/PowerShellEditorServices/Extensions/Api/EditorExtensionServiceProvider.cs b/src/PowerShellEditorServices/Extensions/Api/EditorExtensionServiceProvider.cs index d750923fb..e57c369d6 100644 --- a/src/PowerShellEditorServices/Extensions/Api/EditorExtensionServiceProvider.cs +++ b/src/PowerShellEditorServices/Extensions/Api/EditorExtensionServiceProvider.cs @@ -162,7 +162,9 @@ public static object GetPsesAssemblyLoadContext() /// /// The absolute path of the assembly to load. /// The loaded assembly object. - public static Assembly LoadAssemblyInPsesLoadContext(string assemblyPath) +#pragma warning disable CA1822 // Mark members as static + public Assembly LoadAssemblyInPsesLoadContext(string assemblyPath) +#pragma warning restore CA1822 // Mark members as static { if (!VersionUtils.IsNetCore) { diff --git a/src/PowerShellEditorServices/Utility/Extensions.cs b/src/PowerShellEditorServices/Utility/Extensions.cs index 88a9fa4f3..1ecf8db49 100644 --- a/src/PowerShellEditorServices/Utility/Extensions.cs +++ b/src/PowerShellEditorServices/Utility/Extensions.cs @@ -9,8 +9,8 @@ namespace Microsoft.PowerShell.EditorServices.Utility internal static class ObjectExtensions { /// - /// Extension to evaluate an object's ToString() method in an exception safe way. This will - /// extension method will not throw. + /// Extension to evaluate an object's ToString() method in an exception safe way. This extension + /// method will not throw. /// /// The object on which to call ToString() /// The ToString() return value or a suitable error message is that throws.