summaryrefslogtreecommitdiff
path: root/ale_linters/javascript
diff options
context:
space:
mode:
authorDerek Sifford <dereksifford@gmail.com>2019-02-11 16:24:22 -0500
committerw0rp <w0rp@users.noreply.github.com>2019-02-11 21:24:22 +0000
commitaca1edb47613a2f41f4b845455a2236b946da197 (patch)
tree6c135f7d3da9bed5eb47439355ce818c74033c61 /ale_linters/javascript
parent6ebe24b5ffcd8536c613a4f12d07ccadbfb07cd8 (diff)
downloadale-aca1edb47613a2f41f4b845455a2236b946da197.zip
add project_root_callback for tsserver (#2290)
* add project_root_callback for tsserver * add tests for tsserver project root * Update test/command_callback/test_javascript_tsserver_command_callback.vader
Diffstat (limited to 'ale_linters/javascript')
-rw-r--r--ale_linters/javascript/tsserver.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/javascript/tsserver.vim b/ale_linters/javascript/tsserver.vim
index 6cf08dd6..63509022 100644
--- a/ale_linters/javascript/tsserver.vim
+++ b/ale_linters/javascript/tsserver.vim
@@ -12,6 +12,6 @@ call ale#linter#Define('javascript', {
\ 'node_modules/.bin/tsserver',
\ ]),
\ 'command': '%e',
-\ 'project_root_callback': {-> ''},
+\ 'project_root_callback': 'ale#handlers#tsserver#GetProjectRoot',
\ 'language': '',
\})