mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[PTRun][VSCodeWorkspaces] Enable analyzer and fix warning (#16897)
* [Community.PowerToys.Run.Plugin.VSCodeWorkspaces] Enable analyzer and fix warnings * fix CA1824: Mark assemblies with NeutralResourcesLanguageAttribute
This commit is contained in:
committed by
GitHub
parent
ffdb5d44d7
commit
ba525f068b
@@ -2,6 +2,7 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces
|
||||
@@ -15,7 +16,7 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces
|
||||
if (WindowsPath.IsMatch(path))
|
||||
{
|
||||
string windowsPath = path.Replace("/", "\\");
|
||||
return $"{windowsPath[0]}".ToUpper() + windowsPath.Remove(0, 1);
|
||||
return $"{windowsPath[0]}".ToUpperInvariant() + windowsPath.Remove(0, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user