Skip to content

Commit

Permalink
fix: vscode links not working with latest vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Nov 5, 2023
1 parent 607fadd commit 823d2f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,8 @@ public function vscodeLink($path)
$root = $tracy['localRootPath'];
else $root = $this->wire->config->paths->root;
$link = str_replace($this->wire->config->paths->root, $root, $path);
return "vscode://file/$link";
$link = Paths::normalizeSeparators($link);
return "vscode://file/" . ltrim($link, "/");
}

/** translation support in LATTE files */
Expand Down

0 comments on commit 823d2f6

Please sign in to comment.