You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
776 B
Python
25 lines
776 B
Python
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,
|
|
)
|