Martino Pilia
0a5de2b42b
Add bandit linter for Python
2019-01-26 11:48:03 +01:00
Alvin Chan
f12d312aa4
Add babylon
as default Prettier parser ( #2220 )
...
* Mimic Prettier's default parser by setting it to `babylon`
* Add tests to check default Prettier `parser`
* Set Prettier default parser based on version
* Update the comment to explain the reason for an explicit default
2019-01-22 10:24:15 +00:00
Andrey Popp
d0284f22ea
Add textDocument/typeDefinition for LSP ( #2226 )
...
* Add textDocument/typeDefinition for LSP
Doc to spec https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition
This works like textDocument/definition but resolves a location of a
type of an expression under the cursor.
I'm not sure what to do with tsserver though.
* Fix passing column to LSP
* test_go_to_definition: wording
* Add tests for textDocument/typeDefinition
* Add docs for textDocument/typeDefinition
2019-01-21 23:06:28 +00:00
w0rp
a4932679b5
Merge pull request #2224 from andreypopp/andreypopp/lsp-hover-fix-column
...
Adjust column to be 0-based for LSP messages
2019-01-21 21:11:02 +00:00
Andrey Popp
bcf63eea96
Request LSP completion for the next col after the cursor
2019-01-21 23:19:47 +03:00
w0rp
37107df6f3
Merge pull request #2223 from andreypopp/andreypopp/lsp-diagnostics-end
...
End position in LSP range is exclusive
2019-01-21 19:59:38 +00:00
Andrey Popp
c2e4b553d0
Update tests
2019-01-21 18:36:52 +03:00
Andrey Popp
e960e54eca
Update tests
2019-01-21 17:40:33 +03:00
Andrey Popp
2e85eed756
Fix ale#lsp#message#* to convert column to 0-based
...
This is what LSP specifies.
2019-01-21 17:40:33 +03:00
w0rp
bffb26cb72
Merge pull request #2230 from yut23/master
...
Add support for pyls configuration options
2019-01-21 09:10:57 +00:00
yut23
f2db164268
Add support for pyls configuration options
...
Resolves #1443 .
Heavily inspired by the analogous support added for elixir-ls.
2019-01-20 23:59:46 -05:00
Andrey Popp
d6d6fcf928
End position in LSP range is exclusive
...
From LSP spec:
> A range in a text document expressed as (zero-based) start and end
> positions. A range is comparable to a selection in an editor. Therefore
> the end position is exclusive.
2019-01-19 18:50:21 +03:00
w0rp
d1fc084b2d
Merge pull request #2209 from samzeng/patch-1
...
Fixed typo
2019-01-15 15:36:20 +00:00
Sam Zeng
6efa37d35b
Fixed typo
2019-01-15 23:06:51 +08:00
w0rp
a50e049e74
Mention raco in the list of supported tools
2019-01-14 20:35:23 +00:00
Anthony Quizon
d09e8bc99e
Racket linting using raco ( #2146 )
2019-01-14 19:45:33 +00:00
w0rp
c0b2090fbb
#2132 Move CreateTemporaryFileForJob calls into FormatCommand
2019-01-12 18:34:26 +00:00
hokorobi
7f176390fc
Support textlint for reStructuredText ( #1978 )
...
* Support textlint for reStructuredText
* Add linter test for textlint rst
2019-01-12 14:40:03 +00:00
w0rp
56b7dca623
Fix flow tests on Windows
2019-01-12 14:36:07 +00:00
w0rp
cbaa7eb3c7
Clean up bingo tests, so they pass on my machine too
2019-01-12 13:14:29 +00:00
w0rp
6644563949
#2132 Remove the need for the hidden add_newline option by tweaking the flow command
2019-01-12 13:14:29 +00:00
w0rp
d8a53cc7a5
Merge pull request #2191 from davidvandebunte/fixCompDbDir
...
bugfix: c.vim: Pull build directory from compilation database
2019-01-10 18:59:13 +00:00
TANIGUCHI Masaya
fabebb3a47
Add textlint for Asciidoc and add it to Fixers ( #2193 )
...
* Add textlint for asciidoc
* Add textlint --fix
2019-01-10 18:53:45 +00:00
w0rp
721183116e
Merge pull request #2194 from fx-carton/fix-cflags-parsing
...
Fix cflags parsing
2019-01-10 11:33:33 +00:00
François-Xavier Carton
7e7447bb93
Cflags: added a test case
2019-01-09 16:53:45 +01:00
François-Xavier Carton
4bbb10b46a
Cflags parser: fix special chars matching algorithm
2019-01-09 16:53:36 +01:00
David VandeBunte
4f72023e16
bugfix: c.vim: Pull build directory from compilation database
...
The LLVM compiler database JSON already includes a directory where the
build was performed:
https://clang.llvm.org/docs/JSONCompilationDatabase.html
Prefer this directory for fixing relative paths in compiler include
arguments in ale#c#ParseCFlags.
Without this change, users cannot create a symlink to their compilation
database as suggested in the LLVM tooling setup instructions:
https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
2019-01-08 19:09:02 -06:00
w0rp
f23811770a
Add briefer help tags for ALE development documentation
2019-01-08 14:40:26 +00:00
w0rp
84475ff6f1
Merge pull request #2189 from jeremija/jeremija/manual-autocomplete-wo-prefix
...
Manually trigger autocomplete even when prefix is ""
2019-01-08 14:27:04 +00:00
Jerko Steiner
b1b05e6e66
Optimize ale#completion#Filter when prefix is ""
2019-01-08 15:10:03 +01:00
Jerko Steiner
9bcf8a2336
Manually trigger autocomplete even when prefix is ""
2019-01-08 12:57:17 +01:00
w0rp
1d7acad891
Merge pull request #2161 from guill/compile_database_perf
...
Improve perf for compile dbs in large projects
2019-01-08 09:29:07 +00:00
Jerko Steiner
0fcd5e79a9
Add ability to manually trigger completion menu ( #2177 )
...
* Add ability to manually trigger completion menu
* Mention :ALEComplete in completion docs
* Add test for ALEComplete
2019-01-07 17:55:55 +00:00
Jacob Segal
cb0a5c7a36
Improve perf for compile dbs in large projects
...
When using a compilation database (compile_commands.json) in very large
projects, significant delays would occur when changing files --
particularly those that happened to be far down the db. Rather than
iterating over the whole list every time, we now build up a lookup table
based on the tail of the filename (and tail of the directory for
widening searches) and iterate over the much smaller list of compile
commands for files with the given name.
Test metrics (from compile_database_perf/test.sh) show a 90% performance
improvement -- from 25 seconds to 2.5 seconds per run.
2019-01-06 00:41:57 -08:00
Jerko Steiner
5bbe77101d
Add support for bingo ( #2165 )
...
* Add support for https://github.com/saibing/bingo
* Add docs for ale-go-bingo
* Use go.mod when found
* Add test for bingo FindProjectRoot
* Simplify ale_linters#go#bingo#GetCommand
2019-01-05 19:12:55 +00:00
w0rp
4f3190daa8
Fix a test on Windows
2019-01-04 14:51:55 +00:00
w0rp
3b96ab43fb
Merge pull request #2176 from altaurog/feat/elm-tests
...
support tests/ with elm 0.19.0
2019-01-04 09:38:10 +00:00
Aryeh Leib Taurog
1f21eb0c42
fallback to elm if elm-tests isn’t available
2019-01-04 09:55:35 +02:00
Aryeh Leib Taurog
4a11a6337e
fix: don’t use regex match
...
windows paths have backslashes, which are special in regex patterns
2019-01-04 09:55:35 +02:00
Aryeh Leib Taurog
ba38688dff
support tests/ with elm 0.19.0
...
With earlier elm versions, a separate package file is maintained for
tests, which when properly configured enabled the compiler to find what
it needed to compile the tests. Under elm 0.19, test dependencies are
managed in the top-level package file, so `elm make` will fail on the
tests. `elm-test make` is required in this case.
See https://github.com/elm-explorations/test/issues/64
2019-01-04 09:55:35 +02:00
Aryeh Leib Taurog
bbf02d837e
test elm-make changes to rootdir when elm.json is found
...
most projects will have an elm.json file (>= 0.19) or elm-package.json (< 0.19)
2019-01-04 09:55:35 +02:00
w0rp
08606b88d0
Clean up the new g:ale_shell code. Use it for Windows
2019-01-03 21:23:09 +00:00
w0rp
7919db0db5
Merge pull request #2167 from stegmanh/master
...
Add support for ale option to override default shell used by ale
2019-01-03 21:01:13 +00:00
w0rp
1b264b8662
Merge pull request #2168 from fx-carton/master
...
Fix CFLAGS & Makefile issues
2019-01-03 20:37:16 +00:00
w0rp
78724f4cd3
Fix some formatting issues
2019-01-03 20:33:59 +00:00
w0rp
a1654cfb58
Merge pull request #1988 from mdtusz/pipenv-black
...
Add support for black usage with pipenv
2019-01-03 20:32:36 +00:00
Holden
5f613a5fd6
change ale to use value of g:ale_shell regardless of what it is
2019-01-02 19:05:51 -05:00
w0rp
1d87c844b0
Merge pull request #2173 from chaucerbao/feature/find-references-line-text
...
Add associated line text on ALEFindReferences results for TypeScript
2019-01-02 22:40:11 +00:00
Alvin Chan
5792bd6e29
Update FindReferences tests
2018-12-31 14:59:50 -07:00
Alvin Chan
f534db1ef9
Replace trim
with substitute
for compatibility (Vim <8.0.1630)
2018-12-31 14:54:36 -07:00