Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 9558e04

Browse files
committed
use ProjectItem instead of ActiveDocument name
1 parent 6256763 commit 9558e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.VisualStudio/Helpers/ActiveDocumentSnapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ActiveDocumentSnapshot : IActiveDocumentSnapshot
1919
public ActiveDocumentSnapshot([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
2020
{
2121
StartLine = EndLine = -1;
22-
Name = Services.Dte2?.ActiveDocument?.FullName;
22+
Name = Services.Dte2?.ActiveDocument?.ProjectItem.Name;
2323

2424
var textManager = serviceProvider.GetService(typeof(SVsTextManager)) as IVsTextManager;
2525
Debug.Assert(textManager != null, "No SVsTextManager service available");

0 commit comments

Comments
 (0)