提交 fde02d44 编写于 作者: D David Barbet

Use language name over content type, rename length.

上级 9c892ae5
......@@ -31,8 +31,8 @@ internal abstract class AbstractToggleBlockCommentBase :
private static readonly CommentSelectionResult s_emptyCommentSelectionResult =
new CommentSelectionResult(new List<TextChange>(), new List<CommentTrackingSpan>(), Operation.Uncomment);
private const string ContentTypeString = "ContentType";
private const string SubjectBufferLengthString = "subjectBufferLength";
private const string LanguageNameString = "languagename";
private const string LengthString = "length";
private readonly ITextStructureNavigatorSelectorService _navigatorSelectorService;
......@@ -89,8 +89,8 @@ public bool ExecuteCommand(ToggleBlockCommentCommandArgs args, CommandExecutionC
{
using (Logger.LogBlock(FunctionId.CommandHandler_ToggleBlockComment, KeyValueLogMessage.Create(LogType.UserAction, m =>
{
m[ContentTypeString] = subjectBuffer.ContentType.DisplayName;
m[SubjectBufferLengthString] = subjectBuffer.CurrentSnapshot.Length;
m[LanguageNameString] = document.Project.Language;
m[LengthString] = subjectBuffer.CurrentSnapshot.Length;
}), cancellationToken))
{
var experimentationService = document.Project.Solution.Workspace.Services.GetRequiredService<IExperimentationService>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册