Microsoft Python LS => Pyright

This commit is contained in:
Radon Rosborough 2022-10-10 09:51:06 -07:00
parent bcc144ea08
commit 60058f4acf
1 changed files with 3 additions and 14 deletions

View File

@ -41,15 +41,8 @@ install:
- python3 - python3
- python3-pip - python3-pip
- black - black
manual: | npm:
install -d "${pkg}/opt/mspyls" - pyright
install -d "${pkg}/usr/local/bin"
url="$(curl -fsSL "https://pvsc.blob.core.windows.net/python-language-server-stable?restype=container&comp=list&prefix=Python-Language-Server-linux-x64" | grep -Eo 'https://[^<]+\.nupkg' | tail -n1)"
wget "${url}"
unzip -d "${pkg}/opt/mspyls" Python-Language-Server-linux-x64.*.nupkg
chmod +x "${pkg}/opt/mspyls/Microsoft.Python.LanguageServer"
ln -s "/opt/mspyls/Microsoft.Python.LanguageServer" "${pkg}/usr/local/bin/Microsoft.Python.LanguageServer"
repl: | repl: |
python3 -u python3 -u
@ -83,11 +76,7 @@ pkg:
lsp: lsp:
start: | start: |
Microsoft.Python.LanguageServer pyright-langserver --stdio
init:
interpreter:
properties:
InterpreterPath: /usr/bin/python3
code: "import func" code: "import func"
item: "functools" item: "functools"