This commit is contained in:
Бондарев Иван 2019-12-26 13:25:52 +01:00
parent db3a5cdf1f
commit a245ece51d

View file

@ -1047,7 +1047,18 @@ namespace CodeCompletion
if (ps.is_constructor)
si = new ElementScope(ps.declaringType);
}
return CodeCompletionController.CurrentParser.LanguageInformation.GetIndexerString(si);
string[] description = CodeCompletionController.CurrentParser.LanguageInformation.GetIndexerString(si);
if (description != null)
for (int i = 0; i < description.Length; i++)
{
var arr = si.si.description.Split(new string[1] { "\r\n" }, StringSplitOptions.None);
if (arr.Length > 1 && !string.IsNullOrEmpty(arr[1]))
{
description[i] += si.si.description.Substring(si.si.description.IndexOf("\r\n"));
}
}
return description;
}
/// <summary>