提交 1628d213 编写于 作者: D David Poeschl

Better comment

上级 72427c3b
......@@ -25,8 +25,8 @@ public RenameDocumentUndoUnit(VisualStudioWorkspaceImpl workspace, string fromNa
public void Do(IOleUndoManager pUndoManager)
{
// FirstOrDefault is okay because that's how the rename would have been
// done in the forward direction as well.
// Using FirstOrDefault because we only need to rename one document, as that will get
// applied to linked files.
var documentId = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(_filePath).FirstOrDefault();
if (documentId != null)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册