File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments