From ee0f26ff9a3fc289ffbda353eba284085fbbd3ee Mon Sep 17 00:00:00 2001 From: Allison Chou Date: Mon, 9 Mar 2020 16:00:16 -0700 Subject: [PATCH] Add comment with to-do work item --- .../AbstractEditorInlineRenameService.SymbolRenameInfo.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EditorFeatures/Core.Wpf/InlineRename/AbstractEditorInlineRenameService.SymbolRenameInfo.cs b/src/EditorFeatures/Core.Wpf/InlineRename/AbstractEditorInlineRenameService.SymbolRenameInfo.cs index 98753a3dcd5..5eefa6bb90d 100644 --- a/src/EditorFeatures/Core.Wpf/InlineRename/AbstractEditorInlineRenameService.SymbolRenameInfo.cs +++ b/src/EditorFeatures/Core.Wpf/InlineRename/AbstractEditorInlineRenameService.SymbolRenameInfo.cs @@ -165,6 +165,8 @@ private bool HasAttributeSuffix(string value) private static string GetSpanText(Document document, TextSpan triggerSpan, CancellationToken cancellationToken) { + // TO-DO: Add new 'triggerText' parameter to the callers of this method via IVT so that we can get the text asynchronously instead. + // https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1080161 var sourceText = document.GetTextSynchronously(cancellationToken); var triggerText = sourceText.ToString(triggerSpan); return triggerText; -- GitLab