mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(language-server): add logging for URL creation in connectToLanguageServer
This commit is contained in:
parent
f4ce0e594d
commit
0d29c56750
@ -6,9 +6,7 @@ import { toSocket, WebSocketMessageReader, WebSocketMessageWriter } from "vscode
|
||||
|
||||
// Create the WebSocket URL based on the protocol and port
|
||||
function createUrl(protocol: string, hostname: string, port: number | null, path: string | null): string {
|
||||
const formattedPort = port !== null ? `:${port}` : "";
|
||||
const formattedPath = path ? (path.startsWith("/") ? path : `/${path}`) : "";
|
||||
return normalizeUrl(`${protocol}://${hostname}${formattedPort}${formattedPath}`);
|
||||
return normalizeUrl(`${protocol}://${hostname}${port ? `:${port}` : ""}${path || ""}`);
|
||||
}
|
||||
|
||||
// Create the language client with the given transports
|
||||
|
Loading…
Reference in New Issue
Block a user