From 711417f5d5dc1033bbf1f24836e58e1612557339 Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Wed, 29 Nov 2023 18:14:27 +0800 Subject: [PATCH] fix: PDF symbol link respect disable git features --- .../ManagedReference/Visitors/SymbolVisitorAdapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs b/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs index a44f1452b6c..f796f1de099 100644 --- a/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs +++ b/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs @@ -46,7 +46,7 @@ public override MetadataItem DefaultVisit(ISymbol symbol) DisplayNames = new SortedList(), DisplayNamesWithType = new SortedList(), DisplayQualifiedNames = new SortedList(), - Source = VisitorHelper.GetSourceDetail(symbol, _compilation), + Source = _config.DisableGitFeatures ? null : VisitorHelper.GetSourceDetail(symbol, _compilation), }; var assemblyName = symbol.ContainingAssembly?.Name; item.AssemblyNameList = string.IsNullOrEmpty(assemblyName) || assemblyName is "?" ? null : new List { assemblyName };