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

@@ -3,6 +3,7 @@ import { Bus } from "@/bus"
import { Log } from "../util/log"
import { LSPClient } from "./client"
import path from "path"
import { pathToFileURL } from "url"
import { LSPServer } from "./server"
import z from "zod"
import { Config } from "../config/config"
@@ -270,7 +271,7 @@ export namespace LSP {
return run((client) => {
return client.connection.sendRequest("textDocument/hover", {
textDocument: {
uri: `file://${input.file}`,
uri: pathToFileURL(input.file).href,
},
position: {
line: input.line,