Skip to content

Commit

Permalink
better perf of outline patching
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jan 30, 2025
1 parent 2c039b3 commit b10676e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/src/getPatchedNavTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const getNavTreeItems = (
fileName: string,
additionalFeatures: AdditionalFeatures,
) => {
navModule = getPatchedNavModule(additionalFeatures)
navModule ??= getPatchedNavModule(additionalFeatures)
const sourceFile =
(languageService as unknown as import('typescript-full').LanguageService).getNonBoundSourceFile?.(fileName) ??
languageService.getProgram()!.getSourceFile(fileName)
Expand Down

0 comments on commit b10676e

Please sign in to comment.