提交 37aa969f 编写于 作者: L latkin

Merge branch 'master' into fsharp4

......@@ -5214,12 +5214,13 @@ internal int DoAddItem(uint itemIdLoc, VSADDITEMOPERATION op, string itemName, u
}
else if (op == VSADDITEMOPERATION.VSADDITEMOP_OPENFILE)
{
// When called via automation API, there seem to always be exactly one element in the array
string file = files[0];
HierarchyNode n = this.NodeFromItemId(itemIdLoc);
string relativeFolder = Path.GetDirectoryName(n.Url);
string relPath = PackageUtilities.MakeRelativeIfRooted(Path.Combine(relativeFolder, Path.GetFileName(file)), this.BaseURI);
MoveFileToBottomIfNoOtherPendingMove(relPath);
foreach (string file in files)
{
HierarchyNode n = this.NodeFromItemId(itemIdLoc);
string relativeFolder = Path.GetDirectoryName(n.Url);
string relPath = PackageUtilities.MakeRelativeIfRooted(Path.Combine(relativeFolder, Path.GetFileName(file)), this.BaseURI);
MoveFileToBottomIfNoOtherPendingMove(relPath);
}
}
else if (op == VSADDITEMOPERATION.VSADDITEMOP_LINKTOFILE)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册