Skip to content

Commit 2324f13

Browse files
authored
fix: PDB symbol link respect disable git features (#9490)
fix: PDB symbol link respect disable git features
1 parent 50b064a commit 2324f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public override MetadataItem DefaultVisit(ISymbol symbol)
4646
DisplayNames = new SortedList<SyntaxLanguage, string>(),
4747
DisplayNamesWithType = new SortedList<SyntaxLanguage, string>(),
4848
DisplayQualifiedNames = new SortedList<SyntaxLanguage, string>(),
49-
Source = VisitorHelper.GetSourceDetail(symbol, _compilation),
49+
Source = _config.DisableGitFeatures ? null : VisitorHelper.GetSourceDetail(symbol, _compilation),
5050
};
5151
var assemblyName = symbol.ContainingAssembly?.Name;
5252
item.AssemblyNameList = string.IsNullOrEmpty(assemblyName) || assemblyName is "?" ? null : new List<string> { assemblyName };

0 commit comments

Comments
 (0)