From 07edad88495aa90fd6bac2a2183aaacf8dd370f6 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Mon, 28 Oct 2024 19:55:01 -0700 Subject: [PATCH] Replace substr with substring --- src/providers/defProvider.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/providers/defProvider.ts b/src/providers/defProvider.ts index 5fe5a558..b44af224 100644 --- a/src/providers/defProvider.ts +++ b/src/providers/defProvider.ts @@ -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()