Skip to content

Commit

Permalink
Replace substr with substring
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Oct 29, 2024
1 parent f078182 commit 07edad8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/defProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export class DefProvider implements vscode.DefinitionProvider {
}
const parent = workFolder
? workFolder
: document.uri.path.substr(0, document.uri.path.lastIndexOf('/'));
: document.uri.path.substring(
0,
document.uri.path.lastIndexOf('/'),
);
const targetPath = vscode.Uri.file(
includeMatch[0]
.trim()
Expand Down

0 comments on commit 07edad8

Please sign in to comment.