Skip to content

Commit

Permalink
Cleanup workFolder check in tryGetFileLink
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Oct 29, 2024
1 parent f2432c4 commit fdf5b92
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/providers/defProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,9 @@ export class DefProvider implements vscode.DefinitionProvider {
if (!includeMatch) {
return undefined;
}
const parent = workFolder
? workFolder
: document.uri.path.substring(
0,
document.uri.path.lastIndexOf('/'),
);
const parent =
workFolder ||
document.uri.path.substring(0, document.uri.path.lastIndexOf('/'));
const targetPath = vscode.Uri.file(
includeMatch[0]
.trim()
Expand Down

0 comments on commit fdf5b92

Please sign in to comment.