mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-25 21:41:10 +08:00
Add volar support for vue (#3992)
* feat-draft: inital volar setup * feat(volar): add documentation * feat(volar): include default init opts * feat(volar): add initial tests * fix(volar): add possible project roots * fix(volar): tests - use empty files
This commit is contained in:
27
test/linter/test_volar.vader
Normal file
27
test/linter/test_volar.vader
Normal file
@@ -0,0 +1,27 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('vue', 'volar')
|
||||
|
||||
let g:tsserver_path = ''
|
||||
let g:actual_path = ''
|
||||
let g:init_opts = {}
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
unlet g:tsserver_path
|
||||
unlet g:actual_path
|
||||
unlet g:init_opts
|
||||
|
||||
Execute(Assert Volar LSP for Vue Project):
|
||||
call ale#test#SetFilename('../test-files/volar/src/App.vue')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/volar')
|
||||
|
||||
Execute(Assert proper tsserverlibrary for Volar LSP):
|
||||
call ale#test#SetFilename('../test-files/volar/src/App.vue')
|
||||
|
||||
let g:init_opts = ale_linters#vue#volar#GetInitializationOptions(bufnr(''))
|
||||
let g:tsserver_path = init_opts.typescript.serverPath
|
||||
let g:actual_path = ale#path#Simplify(g:dir . '/../test-files/volar/node_modules/typescript/lib/tsserverlibrary.js')
|
||||
|
||||
AssertEqual g:tsserver_path, g:actual_path
|
||||
0
test/test-files/volar/node_modules/.bin/volar-server
generated
vendored
Executable file
0
test/test-files/volar/node_modules/.bin/volar-server
generated
vendored
Executable file
0
test/test-files/volar/node_modules/typescript/lib/tsserverlibrary.js
generated
vendored
Normal file
0
test/test-files/volar/node_modules/typescript/lib/tsserverlibrary.js
generated
vendored
Normal file
0
test/test-files/volar/package.json
Normal file
0
test/test-files/volar/package.json
Normal file
0
test/test-files/volar/src/App.vue
Normal file
0
test/test-files/volar/src/App.vue
Normal file
Reference in New Issue
Block a user