Browse Source

fixed exception 2683

pull/18/head
Siegfried Pammer 14 years ago
parent
commit
3921508dc8
  1. 8
      src/AddIns/Debugger/Debugger.AddIn/Pads/WatchInputBox.xaml.cs

8
src/AddIns/Debugger/Debugger.AddIn/Pads/WatchInputBox.xaml.cs

@ -40,14 +40,14 @@ namespace Debugger.AddIn.Pads @@ -40,14 +40,14 @@ namespace Debugger.AddIn.Pads
if (ProjectService.CurrentProject == null) return;
// get language
language = ProjectService.CurrentProject.Language;
language = ProjectService.CurrentProject.Language;
resolver = new NRefactoryResolver(LanguageProperties.GetLanguage(language));
// FIXME set language
if (language == "VB" || language == "VBNet") {
console.SetHighlighting("VBNET");
}
else {
} else {
language = "C#";
console.SetHighlighting("C#");
}
@ -111,7 +111,7 @@ namespace Debugger.AddIn.Pads @@ -111,7 +111,7 @@ namespace Debugger.AddIn.Pads
language = "CSharp";
}
SupportedLanguage supportedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), language.ToString(), true);
SupportedLanguage supportedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), language, true);
using (var parser = ParserFactory.CreateParser(supportedLanguage, new StringReader(command))) {
parser.ParseExpression();
if (parser.Errors.Count > 0) {

Loading…
Cancel
Save