mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
chore: replace python-language-server to supported pylsp (#3810)
As mentioned in #3722 palantir's python-language-server is no longer maintained. The alternative is to use the community-driven https://github.com/python-lsp/python-lsp-server.
This commit is contained in:
committed by
GitHub
parent
e230f07465
commit
8b73d98baf
@@ -391,11 +391,11 @@ Execute(LSP diagnostics responses on project root should not populate loclist):
|
||||
\ ale#test#GetLoclistWithoutModule()
|
||||
|
||||
Execute(LSP errors should mark linters no longer active):
|
||||
let b:ale_linters = ['pyls']
|
||||
runtime ale_linters/python/pyls.vim
|
||||
let b:ale_linters = ['pylsp']
|
||||
runtime ale_linters/python/pylsp.vim
|
||||
call ale#test#SetFilename('filename.py')
|
||||
call ale#engine#InitBufferInfo(bufnr(''))
|
||||
call ale#lsp_linter#SetLSPLinterMap({1: 'pyls'})
|
||||
call ale#lsp_linter#SetLSPLinterMap({1: 'pylsp'})
|
||||
|
||||
let g:ale_buffer_info[bufnr('')].active_linter_list = ale#linter#Get('python')
|
||||
Assert !empty(g:ale_buffer_info[bufnr('')].active_linter_list)
|
||||
|
||||
Reference in New Issue
Block a user