@@ -1,7 +1,7 @@ | |||||
// | // | ||||
// Lol Engine - VsLol add-in for Visual Studio | // Lol Engine - VsLol add-in for Visual Studio | ||||
// | // | ||||
// Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net> | |||||
// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> | |||||
// This program is free software; you can redistribute it and/or | // This program is free software; you can redistribute it and/or | ||||
// modify it under the terms of the Do What The Fuck You Want To | // modify it under the terms of the Do What The Fuck You Want To | ||||
// Public License, Version 2, as published by Sam Hocevar. See | // Public License, Version 2, as published by Sam Hocevar. See | ||||
@@ -90,8 +90,8 @@ internal class MenuGenerateCompilers : OleMenuCommand | |||||
foreach (Project project in projects) | foreach (Project project in projects) | ||||
foreach (ProjectItem item in ParseProjectItems(project)) | foreach (ProjectItem item in ParseProjectItems(project)) | ||||
{ | { | ||||
if (item.Name.EndsWith("-scanner.l") | |||||
|| item.Name.EndsWith("-parser.y")) | |||||
if (item.Name.EndsWith("-scanner.l", StringComparison.CurrentCultureIgnoreCase) | |||||
|| item.Name.EndsWith("-parser.y", StringComparison.CurrentCultureIgnoreCase)) | |||||
Visible = true; | Visible = true; | ||||
} | } | ||||
} | } | ||||
@@ -217,9 +217,9 @@ internal class MenuGenerateCompilers : OleMenuCommand | |||||
if (p.ExitCode != 0) | if (p.ExitCode != 0) | ||||
{ | { | ||||
Logger.Info("Error: " + executable + " exited with code " + p.ExitCode + "\n"); | Logger.Info("Error: " + executable + " exited with code " + p.ExitCode + "\n"); | ||||
if (arguments != "") | |||||
if (!string.IsNullOrEmpty(arguments)) | |||||
Logger.Info("Error: args: " + arguments + "\n"); | Logger.Info("Error: args: " + arguments + "\n"); | ||||
if (env != "") | |||||
if (!string.IsNullOrEmpty(env)) | |||||
Logger.Info("Error: env: " + env + "\n"); | Logger.Info("Error: env: " + env + "\n"); | ||||
return false; | return false; | ||||
} | } | ||||
@@ -1,7 +1,7 @@ | |||||
// | // | ||||
// Lol Engine - VsLol add-in for Visual Studio | // Lol Engine - VsLol add-in for Visual Studio | ||||
// | // | ||||
// Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net> | |||||
// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> | |||||
// This program is free software; you can redistribute it and/or | // This program is free software; you can redistribute it and/or | ||||
// modify it under the terms of the Do What The Fuck You Want To | // modify it under the terms of the Do What The Fuck You Want To | ||||
// Public License, Version 2, as published by Sam Hocevar. See | // Public License, Version 2, as published by Sam Hocevar. See | ||||
@@ -48,14 +48,16 @@ public sealed class PluginPackage : Package | |||||
{ | { | ||||
public PluginPackage() | public PluginPackage() | ||||
{ | { | ||||
Trace.WriteLine(String.Format("Entering constructor for: {0}", this.ToString())); | |||||
Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, | |||||
"Entering constructor for: {0}", this.ToString())); | |||||
} | } | ||||
[SecurityPermission(SecurityAction.Demand, Flags=SecurityPermissionFlag.UnmanagedCode)] | [SecurityPermission(SecurityAction.Demand, Flags=SecurityPermissionFlag.UnmanagedCode)] | ||||
protected override void Initialize() | protected override void Initialize() | ||||
{ | { | ||||
// Trace the beginning of this method and call the base implementation. | // Trace the beginning of this method and call the base implementation. | ||||
Trace.WriteLine(String.Format("Entering Initialize() of: {0}", this.ToString())); | |||||
Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, | |||||
"Entering Initialize() of: {0}", this.ToString())); | |||||
base.Initialize(); | base.Initialize(); | ||||
Logger.Initialize(GetService(typeof(SVsOutputWindow)) as IVsOutputWindow); | Logger.Initialize(GetService(typeof(SVsOutputWindow)) as IVsOutputWindow); | ||||