Add pyright lsp for Python (#551)

Co-authored-by: Max Rabin <max.rabin@mobileye.com>
This commit is contained in:
Max Rabin 2025-07-01 01:17:47 +03:00 committed by GitHub
parent 58baca2a5b
commit 3d71be2b45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,4 +123,24 @@ export namespace LSPServer {
}
},
}
export const Pyright: Info = {
id: "pyright",
extensions: [".py", ".pyi"],
async spawn() {
const proc = spawn(
BunProc.which(),
["x", "pyright-langserver", "--stdio"],
{
env: {
...process.env,
BUN_BE_BUN: "1",
},
},
)
return {
process: proc,
}
},
}
}