Skip to content

Commit f8612ba

Browse files
committed
Update documentIndex.ts
1 parent a224178 commit f8612ba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/utils/documentIndex.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ export function inferDocName(uri: vscode.Uri): string | undefined {
453453
// This entry is for a class or routine so see if its name and file system path match
454454
const docNamePath = `/${docName.slice(0, -4).replaceAll(".", "/")}${docExt}`;
455455
// Make sure the file extension is lowercased in the path before matching
456-
let fullPath = vscode.Uri.parse(docUriStr).path;
457-
fullPath = fullPath.slice(0, -3) + fullPath.slice(-3).toLowerCase();
458-
if (fullPath.endsWith(docNamePath)) {
456+
let docFullPath = vscode.Uri.parse(docUriStr).path;
457+
docFullPath = docFullPath.slice(0, -3) + docFullPath.slice(-3).toLowerCase();
458+
if (docFullPath.endsWith(docNamePath)) {
459459
// The document name is the trailing substring of the file system path with different delimiters
460-
containingPaths.add(fullPath.slice(0, -docNamePath.length + 1));
460+
containingPaths.add(docFullPath.slice(0, -docNamePath.length + 1));
461461
}
462462
}
463463
});

0 commit comments

Comments
 (0)