summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
AgeCommit message (Collapse)Author
2021-11-12refactor(lsp): prefer using document instead of documents collection (#12720)David Sherret
2021-11-08refactor: move `mod tokio_util` to runtime (#12332)Bert Belder
This avoids a bunch of duplicated code.
2021-10-29refactor(lsp): use deno_graph and single document struct (#12535)Kitson Kelly
Closes #12473
2021-10-12fix(lsp): lint diagnostics respect config file (#12338)Bartek IwaƄczuk
This commit fixes problem with LSP where diagnostics coming from "deno lint" don't respect configuration file. LSP was changed to store "Option<ConfigFile>", "Option<LintConfig>" and "Option<FmtConfig>" on "Inner"; as well as storing "Option<LintConfig>" and "Option<FmtConfig>" on "StateSnapshot". Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-09-07refactor(lsp): use deno_ast and cache swc ASTs (#11780)David Sherret
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-07-25fix(lsp): handle importmaps properly (#11496)Kitson Kelly
Fixes: #11146 Fixes: #11456 Fixes: #10439
2021-06-03fix(#10775): diagnostics update on dependency changes (#10817)Kitson Kelly
Fixes #10775
2021-06-02fix(#10815): lsp only responds to formatting for md, json, jsonc (#10816)Kitson Kelly
Fixes #10815
2021-05-25feat(lsp): diagnostics for deno types and triple-slash refs (#10699)Kitson Kelly
Fixes #9823
2021-05-20fix(lsp): re-enable the per resource configuration without a deadlock (#10625)Kitson Kelly
Fixes #10603
2021-05-19fix(#10695): deps diagnostics include data property (#10696)Kitson Kelly
Fixes #10695
2021-05-18feat(lsp): provide X-Deno-Warning as a diagnostic (#10680)Kitson Kelly
Closes #9932
2021-05-18feat(lsp): support formatting json and markdown files (#10180)Satya Rohith
Resolves #9447 Resolves #9415
2021-05-11fix(lsp): remove code_action/diagnostics deadlock (#10555)Kitson Kelly
Landed without test to meet 1.10.0 deadline. See #10587.
2021-05-11feat(lsp): add internal debugging logging (#10438)Kitson Kelly
Ref: #10368
2021-05-10feat: support workspace folders configuration (#10488)Kitson Kelly
Ref #8643
2021-05-07refactor(lsp): publish diagnostics independently (#10525)Kitson Kelly
Resolves #10518
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-03-18refactor(lsp): slightly reorganize diagnostics debounce logic (#9796)Bert Belder
This patch doesn't actually fix the bug I was hoping to fix, which is that `update_diagnostics()` sometimes gets called even when there are more updates that should be processed first. I did eventually figure out that this issue is caused by Tokio's cooperative yielding, which currently can't be disabled. However overall it makes the debounce code somewhat more readable IMO, which is why I'm suggesting to land it anyway.
2021-03-10fix(lsp): diagnostics use own thread and debounce (#9572)Kitson Kelly
2021-02-18fix(lsp): handle data URLs properly (#9522)Kitson Kelly
Fixes #9514 Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-02-17Make ModuleSpecifier a type alias, not wrapper struct (#9531)Ryan Dahl
2021-02-12fix(lsp): properly handle static assets (#9476)Kitson Kelly
2021-02-12feat(lsp): add deno cache code actions (#9471)Kitson Kelly
2021-02-10fix(lsp): handle type deps properly (#9436)Kitson Kelly
Fixes #9425
2021-01-29Update lspower dependency (#9179)hvithrafn
2021-01-26fix(lsp): complete list of unused diagnostics (#9274)Kitson Kelly
2021-01-26fix(lsp): fix deadlocks, use one big mutex (#9271)Ben Noordhuis
The LSP code had numerous places where competing threads could take out out locks in different orders, making it very prone to deadlocks. This commit sidesteps the entire issue by switching to a single lock. The above is a little white lie: the Sources struct still uses a mutex internally to avoid having to boil the ocean (because being honest about what it does involves changing all its methods to `&mut self` but that ripples out extensively...) I'll save that one for another day.
2021-01-26fix(lsp): reduce deadlocks with in memory documents (#9259)Kitson Kelly
2021-01-22fix(lsp): handle mbc documents properly (#9151)Kitson Kelly
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2020-12-31feat(lsp): support specifying a tsconfig file (#8926)Kitson Kelly
2020-12-30feat(lsp): add cache command (#8911)Kitson Kelly
2020-12-30fix(lsp): handle ts debug errors better (#8914)Kitson Kelly
Fixes #8864
2020-12-24fix(lsp): provide diagnostics for unresolved modules (#8872)Kitson Kelly
2020-12-21refactor: rewrite lsp to be async (#8727)Luca Casonato
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-12-07feat: add mvp language server (#8515)Kitson Kelly
Resolves #8400