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/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..f869bf193 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,22 @@ +{ + "recommendations": [ + // PowerShell development + "ms-vscode.powershell", + + // .NET / C# for debugging and language features + "ms-dotnettools.csharp", + + // Consistent formatting via .editorconfig + "EditorConfig.EditorConfig", + + // YAML support for CI and config files + "redhat.vscode-yaml", + + // GitHub Actions authoring (repo uses GH workflows) + "GitHub.vscode-github-actions", + + // Markdown authoring and linting for docs + "yzhang.markdown-all-in-one", + "DavidAnson.vscode-markdownlint" + ] +} \ No newline at end of file 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.