fix: Windows LSP URIs using backslashes (Biome initialization failure) (#5317)

This commit is contained in:
Adán
2025-12-11 23:28:39 +01:00
committed by GitHub
parent 342595e0f7
commit ffec52a17c
3 changed files with 11 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
import { Log } from "../util/log"
import path from "path"
import { pathToFileURL } from "url"
import os from "os"
import z from "zod"
import { Filesystem } from "../util/filesystem"
@@ -297,7 +298,7 @@ export namespace Config {
dot: true,
cwd: dir,
})) {
plugins.push("file://" + item)
plugins.push(pathToFileURL(item).href)
}
return plugins
}