From fe250d84c0ab5b8d2dee8df89f9f257d86fa4f11 Mon Sep 17 00:00:00 2001 From: Asaf Agami Date: Sun, 4 Jun 2023 14:52:08 +0300 Subject: [PATCH] fix: parse file path correctly (#361) --- .../snykCode/views/suggestion/codeSuggestionWebviewProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts index 8ab86d1f3..dc16366ed 100644 --- a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts +++ b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts @@ -181,7 +181,7 @@ export class CodeSuggestionWebviewProvider cols: [number, number]; rows: [number, number]; }; - const vscodeUri = vscode.Uri.parse(uri); + const vscodeUri = vscode.Uri.file(uri); const range = IssueUtils.createVsCodeRangeFromRange(rows, cols, this.languages); await vscode.commands.executeCommand(SNYK_IGNORE_ISSUE_COMMAND, { uri: vscodeUri,