File size: 776 Bytes
d1ceb73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from .config import load_config_schema
from .utils import NodeModuleSpec
class PyrightLanguageServer(NodeModuleSpec):
node_module = key = "pyright"
script = ["langserver.index.js"]
args = ["--stdio"]
languages = ["python"]
spec = dict(
display_name=key,
mime_types=["text/python", "text/x-ipython"],
urls=dict(
home="https://github.com/microsoft/pyright",
issues="https://github.com/microsoft/pyright/issues",
),
install=dict(
npm="npm install --save-dev {}".format(key),
yarn="yarn add --dev {}".format(key),
jlpm="jlpm add --dev {}".format(key),
),
config_schema=load_config_schema(key),
requires_documents_on_disk=False,
)
|