mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -22,7 +22,7 @@ enum OpenMarkdownLinks {
|
||||
}
|
||||
|
||||
export function resolveDocumentLink(href: string, markdownFile: vscode.Uri): vscode.Uri {
|
||||
let [hrefPath, fragment] = href.split('#').map(c => decodeURIComponent(c));
|
||||
const [hrefPath, fragment] = href.split('#').map(c => decodeURIComponent(c));
|
||||
|
||||
if (hrefPath[0] === '/') {
|
||||
// Absolute path. Try to resolve relative to the workspace
|
||||
|
||||
Reference in New Issue
Block a user